using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Resources;
using System.Windows.Forms;
using FlexCell;
using Infragistics.UltraChart.Resources.Appearance;
using Infragistics.UltraChart.Shared.Styles;
using Infragistics.Win;
using Infragistics.Win.UltraWinChart;
using Infragistics.Win.UltraWinExplorerBar;
using Infragistics.Win.UltraWinGrid;
using Infragistics.Win.UltraWinMaskedEdit;
using Infragistics.Win.UltraWinScrollBar;
using Infragistics.Win.UltraWinTabControl;
using Infragistics.Win.UltraWinTabs;
using PluginFrame;

namespace PcrExperimentProject
{
	public class FormProjectEditor : Form, IRequireValueFromForm
	{
		protected delegate bool CheckNameDelegate(object value);

		protected IContainer components;

		protected UltraTabControl tabPcrProject;

		protected UltraTabSharedControlsPage ultraTabSharedControlsPage1;

		protected UltraTabPageControl ultraTabPageControl1;

		protected UltraTabPageControl ultraTabPageControl2;

		protected GroupBox grbMeltingSegment;

		protected MenuStrip mnuPcrProgram;

		protected Panel panel2;

		protected UltraChart chartPcrProgram;

		protected UltraScrollBar scrollBar;

		protected GroupBox grbPreview;

		protected UltraTabControl tabAmplification;

		protected UltraTabSharedControlsPage ultraTabSharedControlsPage2;

		protected UltraTabPageControl ultraTabPageControl3;

		protected UltraTabPageControl ultraTabPageControl4;

		protected UltraTabPageControl ultraTabPageControl5;

		protected UltraTabPageControl ultraTabPageControl6;

		protected UltraTabPageControl ultraTabPageControl7;

		protected UltraTabPageControl ultraTabPageControl8;

		protected UltraTabPageControl ultraTabPageControl9;

		protected UltraTabPageControl ultraTabPageControl10;

		protected UltraTabPageControl ultraTabPageControl11;

		protected Panel pnlSetProgramButton;

		protected Button btnMoveDown;

		protected Button btnMoveUp;

		protected Button btnDeleteSegment;

		protected Button btnAddStep;

		protected UltraGrid grdStep1;

		protected Panel panelCycle1;

		protected Label lblCycleCount1;

		protected NumericUpDown numCycleCount1;

		protected Button btnAddSegment;

		protected Button btnDeleteStep;

		protected UltraGrid grdStep2;

		protected Panel panelCycle2;

		protected Label lblCycleCount2;

		protected NumericUpDown numCycleCount2;

		protected UltraGrid grdStep3;

		protected Panel panelCycle3;

		protected Label lblCycleCount3;

		protected NumericUpDown numCycleCount3;

		protected UltraGrid grdStep4;

		protected Panel panelCycle4;

		protected Label lblCycleCount4;

		protected NumericUpDown numCycleCount4;

		protected UltraGrid grdStep5;

		protected Panel panelCycle5;

		protected Label lblCycleCount5;

		protected NumericUpDown numCycleCount5;

		protected UltraGrid grdStep6;

		protected Panel panelCycle6;

		protected Label lblCycleCount6;

		protected NumericUpDown numCycleCount6;

		protected UltraGrid grdStep7;

		protected Panel panelCycle7;

		protected Label lblCycleCount7;

		protected NumericUpDown numCycleCount7;

		protected UltraGrid grdStep8;

		protected Panel panelCycle8;

		protected Label lblCycleCount8;

		protected NumericUpDown numCycleCount8;

		protected UltraGrid grdStep9;

		protected Panel panelCycle9;

		protected Label lblCycleCount9;

		protected NumericUpDown numCycleCount9;

		protected Label label1;

		protected NumericUpDown numericUpDown1;

		protected Label lblXMax;

		protected Label lblXMin;

		protected Label lblStopTemperature;

		protected Label lblStartTemperature;

		protected System.Windows.Forms.ComboBox cmbStep;

		protected Label lblStep;

		protected Panel pnlMelting;

		protected CheckBox chkMeltingSegment;

		protected UltraTabPageControl ultraTabPageControl12;

		protected Panel pnlAnalysisOption;

		protected UltraTabPageControl ultraTabPageControl13;

		protected UltraTabPageControl ultraTabPageControl14;

		protected NumericUpDown numStartTemperature;

		protected NumericUpDown numStopTemperature;

		protected Panel panelButtons;

		protected Button btnOption;

		protected Label label2;

		protected Button btnClose;

		protected Button btnSave;

		protected CheckBox chkHRMSegment;

		protected GroupBox grbHRMSegment;

		protected NumericUpDown numHRMStopTemperature;

		protected NumericUpDown numHRMStartTemperature;

		protected ComboBox cmbHRMInterval;

		protected Label lblHRMInterval;

		protected Label lblHRMStopTemperature;

		protected Label lblHRMStartTemperature;

		protected UltraGrid grdCrossTalk;

		protected Button btnPassword;

		protected ComboBox cmbHRMMode;

		protected Label lblHRMMode;

		protected ComboBox cmbHRMRate;

		protected Label lblHRMRate;

		protected NumericUpDown numHRMHoldTime;

		protected Label lblHRMHoldTime;

		protected ResourceManager mResourceManager;

		protected bool mProgramError;

		protected bool mTitleError;

		protected bool mIsNewPcrProject;

		protected bool mIsSaved;

		protected bool mIsRefreshSavedFile;

		protected bool mIsSegmentPositionChanged;

		protected IApplication mApplication;

		protected IConfigurationService mConfigurationService;

		protected IPcrProgramConfiguration mPcrProgramConfiguration;

		protected IPcrExperimentProject mPcrExperimentProject;

		protected IPcrProgram mPcrProgram;

		protected IMeltingSegment mMeltingSegment;

		protected IMeltingSegment mHRMSegment;

		protected IMiscService mMiscService;

		protected IPcrSystemService mPcrSystemService;

		protected IPcrLogService mPcrLogService;

		protected IPcrExperimentProjectService mPcrProjectService;

		protected IPcrOptionService mPcrOptionService;

		protected IAnalysisService mAnalysisService;

		protected IRuleEditorService mRuleEditorService;

		protected ToolStripMenuItem mMenuFile;

		protected ToolStripMenuItem mMenuOption;

		protected CheckNameDelegate mCheckNameDelegate;

		protected string mOriginProjectFileName;

		protected bool mIsAllowToChangeChannelSettings;

		protected UltraGrid[] mStepGrids;

		protected NumericUpDown[] mCycleValues;

		protected int mLastVisibleTabIndex;

		protected ContextMenuStrip mSegmentContextMenu;

		protected ContextMenuStrip mStepContextMenu;

		protected bool mStepGridColumnIsInitialized;

		public IPcrProgram PcrProgram
		{
			get
			{
				return mPcrProgram;
			}
		}

		public IPcrExperimentProject PcrExperimentProject
		{
			get
			{
				return mPcrExperimentProject;
			}
		}

		protected override void Dispose(bool disposing)
		{
			if (disposing && components != null)
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		protected void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PcrExperimentProject.FormProjectEditor));
			Infragistics.Win.Appearance appearance = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance9 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance10 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance11 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance12 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance13 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance14 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance15 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance16 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance17 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance18 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance19 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance20 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance21 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance22 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance23 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance24 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance25 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance26 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance27 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance28 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance29 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance30 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance31 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance32 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance33 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance34 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance35 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance36 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance37 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance38 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance39 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance40 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance41 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance42 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance43 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance44 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance45 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance46 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance47 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance48 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance49 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance50 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance51 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance52 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance53 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance54 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance55 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance56 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance57 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance58 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance59 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance60 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance61 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance62 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance63 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance64 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance65 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance66 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance67 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance68 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance69 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance70 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance71 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance72 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance73 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance74 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance75 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance76 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance77 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance78 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance79 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance80 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance81 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance82 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance83 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance84 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance85 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance86 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance87 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance88 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance89 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance90 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance91 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance92 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance93 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance94 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance95 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance96 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance97 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance98 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance99 = new Infragistics.Win.Appearance();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab2 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab3 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab4 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab5 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab6 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab7 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab8 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab9 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.Appearance appearance100 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance101 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance102 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance103 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance104 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance105 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance106 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance107 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance108 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance109 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance110 = new Infragistics.Win.Appearance();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab10 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab11 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab12 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab13 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab14 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.UltraChart.Resources.Appearance.PaintElement paintElement = new Infragistics.UltraChart.Resources.Appearance.PaintElement();
			Infragistics.UltraChart.Resources.Appearance.GradientEffect effect = new Infragistics.UltraChart.Resources.Appearance.GradientEffect();
			Infragistics.Win.UltraWinScrollBar.ScrollBarLook scrollBarLook = new Infragistics.Win.UltraWinScrollBar.ScrollBarLook();
			this.ultraTabPageControl3 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.grdStep1 = new Infragistics.Win.UltraWinGrid.UltraGrid();
			this.panelCycle1 = new System.Windows.Forms.Panel();
			this.lblCycleCount1 = new System.Windows.Forms.Label();
			this.numCycleCount1 = new System.Windows.Forms.NumericUpDown();
			this.ultraTabPageControl4 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.grdStep2 = new Infragistics.Win.UltraWinGrid.UltraGrid();
			this.panelCycle2 = new System.Windows.Forms.Panel();
			this.lblCycleCount2 = new System.Windows.Forms.Label();
			this.numCycleCount2 = new System.Windows.Forms.NumericUpDown();
			this.ultraTabPageControl5 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.grdStep3 = new Infragistics.Win.UltraWinGrid.UltraGrid();
			this.panelCycle3 = new System.Windows.Forms.Panel();
			this.lblCycleCount3 = new System.Windows.Forms.Label();
			this.numCycleCount3 = new System.Windows.Forms.NumericUpDown();
			this.ultraTabPageControl6 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.grdStep4 = new Infragistics.Win.UltraWinGrid.UltraGrid();
			this.panelCycle4 = new System.Windows.Forms.Panel();
			this.lblCycleCount4 = new System.Windows.Forms.Label();
			this.numCycleCount4 = new System.Windows.Forms.NumericUpDown();
			this.ultraTabPageControl7 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.grdStep5 = new Infragistics.Win.UltraWinGrid.UltraGrid();
			this.panelCycle5 = new System.Windows.Forms.Panel();
			this.lblCycleCount5 = new System.Windows.Forms.Label();
			this.numCycleCount5 = new System.Windows.Forms.NumericUpDown();
			this.ultraTabPageControl8 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.grdStep6 = new Infragistics.Win.UltraWinGrid.UltraGrid();
			this.panelCycle6 = new System.Windows.Forms.Panel();
			this.lblCycleCount6 = new System.Windows.Forms.Label();
			this.numCycleCount6 = new System.Windows.Forms.NumericUpDown();
			this.ultraTabPageControl9 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.grdStep7 = new Infragistics.Win.UltraWinGrid.UltraGrid();
			this.panelCycle7 = new System.Windows.Forms.Panel();
			this.lblCycleCount7 = new System.Windows.Forms.Label();
			this.numCycleCount7 = new System.Windows.Forms.NumericUpDown();
			this.ultraTabPageControl10 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.grdStep8 = new Infragistics.Win.UltraWinGrid.UltraGrid();
			this.panelCycle8 = new System.Windows.Forms.Panel();
			this.lblCycleCount8 = new System.Windows.Forms.Label();
			this.numCycleCount8 = new System.Windows.Forms.NumericUpDown();
			this.ultraTabPageControl11 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.grdStep9 = new Infragistics.Win.UltraWinGrid.UltraGrid();
			this.panelCycle9 = new System.Windows.Forms.Panel();
			this.lblCycleCount9 = new System.Windows.Forms.Label();
			this.numCycleCount9 = new System.Windows.Forms.NumericUpDown();
			this.ultraTabPageControl1 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.tabAmplification = new Infragistics.Win.UltraWinTabControl.UltraTabControl();
			this.ultraTabSharedControlsPage2 = new Infragistics.Win.UltraWinTabControl.UltraTabSharedControlsPage();
			this.pnlSetProgramButton = new System.Windows.Forms.Panel();
			this.btnDeleteStep = new System.Windows.Forms.Button();
			this.btnMoveDown = new System.Windows.Forms.Button();
			this.btnDeleteSegment = new System.Windows.Forms.Button();
			this.btnAddStep = new System.Windows.Forms.Button();
			this.btnAddSegment = new System.Windows.Forms.Button();
			this.btnMoveUp = new System.Windows.Forms.Button();
			this.ultraTabPageControl2 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.pnlMelting = new System.Windows.Forms.Panel();
			this.chkMeltingSegment = new System.Windows.Forms.CheckBox();
			this.grbMeltingSegment = new System.Windows.Forms.GroupBox();
			this.numStopTemperature = new System.Windows.Forms.NumericUpDown();
			this.numStartTemperature = new System.Windows.Forms.NumericUpDown();
			this.cmbStep = new System.Windows.Forms.ComboBox();
			this.lblStep = new System.Windows.Forms.Label();
			this.lblStopTemperature = new System.Windows.Forms.Label();
			this.lblStartTemperature = new System.Windows.Forms.Label();
			this.grbHRMSegment = new System.Windows.Forms.GroupBox();
			this.numHRMHoldTime = new System.Windows.Forms.NumericUpDown();
			this.lblHRMHoldTime = new System.Windows.Forms.Label();
			this.cmbHRMRate = new System.Windows.Forms.ComboBox();
			this.lblHRMRate = new System.Windows.Forms.Label();
			this.cmbHRMMode = new System.Windows.Forms.ComboBox();
			this.lblHRMMode = new System.Windows.Forms.Label();
			this.numHRMStopTemperature = new System.Windows.Forms.NumericUpDown();
			this.chkHRMSegment = new System.Windows.Forms.CheckBox();
			this.numHRMStartTemperature = new System.Windows.Forms.NumericUpDown();
			this.cmbHRMInterval = new System.Windows.Forms.ComboBox();
			this.lblHRMInterval = new System.Windows.Forms.Label();
			this.lblHRMStopTemperature = new System.Windows.Forms.Label();
			this.lblHRMStartTemperature = new System.Windows.Forms.Label();
			this.ultraTabPageControl12 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.pnlAnalysisOption = new System.Windows.Forms.Panel();
			this.ultraTabPageControl13 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.ultraTabPageControl14 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.grdCrossTalk = new Infragistics.Win.UltraWinGrid.UltraGrid();
			this.tabPcrProject = new Infragistics.Win.UltraWinTabControl.UltraTabControl();
			this.ultraTabSharedControlsPage1 = new Infragistics.Win.UltraWinTabControl.UltraTabSharedControlsPage();
			this.mnuPcrProgram = new System.Windows.Forms.MenuStrip();
			this.panel2 = new System.Windows.Forms.Panel();
			this.chartPcrProgram = new Infragistics.Win.UltraWinChart.UltraChart();
			this.scrollBar = new Infragistics.Win.UltraWinScrollBar.UltraScrollBar();
			this.grbPreview = new System.Windows.Forms.GroupBox();
			this.label1 = new System.Windows.Forms.Label();
			this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
			this.lblXMax = new System.Windows.Forms.Label();
			this.lblXMin = new System.Windows.Forms.Label();
			this.panelButtons = new System.Windows.Forms.Panel();
			this.btnPassword = new System.Windows.Forms.Button();
			this.btnOption = new System.Windows.Forms.Button();
			this.label2 = new System.Windows.Forms.Label();
			this.btnClose = new System.Windows.Forms.Button();
			this.btnSave = new System.Windows.Forms.Button();
			this.ultraTabPageControl3.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.grdStep1).BeginInit();
			this.panelCycle1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount1).BeginInit();
			this.ultraTabPageControl4.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.grdStep2).BeginInit();
			this.panelCycle2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount2).BeginInit();
			this.ultraTabPageControl5.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.grdStep3).BeginInit();
			this.panelCycle3.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount3).BeginInit();
			this.ultraTabPageControl6.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.grdStep4).BeginInit();
			this.panelCycle4.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount4).BeginInit();
			this.ultraTabPageControl7.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.grdStep5).BeginInit();
			this.panelCycle5.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount5).BeginInit();
			this.ultraTabPageControl8.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.grdStep6).BeginInit();
			this.panelCycle6.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount6).BeginInit();
			this.ultraTabPageControl9.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.grdStep7).BeginInit();
			this.panelCycle7.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount7).BeginInit();
			this.ultraTabPageControl10.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.grdStep8).BeginInit();
			this.panelCycle8.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount8).BeginInit();
			this.ultraTabPageControl11.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.grdStep9).BeginInit();
			this.panelCycle9.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount9).BeginInit();
			this.ultraTabPageControl1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.tabAmplification).BeginInit();
			this.tabAmplification.SuspendLayout();
			this.pnlSetProgramButton.SuspendLayout();
			this.ultraTabPageControl2.SuspendLayout();
			this.pnlMelting.SuspendLayout();
			this.grbMeltingSegment.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numStopTemperature).BeginInit();
			((System.ComponentModel.ISupportInitialize)this.numStartTemperature).BeginInit();
			this.grbHRMSegment.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numHRMHoldTime).BeginInit();
			((System.ComponentModel.ISupportInitialize)this.numHRMStopTemperature).BeginInit();
			((System.ComponentModel.ISupportInitialize)this.numHRMStartTemperature).BeginInit();
			this.ultraTabPageControl12.SuspendLayout();
			this.ultraTabPageControl14.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.grdCrossTalk).BeginInit();
			((System.ComponentModel.ISupportInitialize)this.tabPcrProject).BeginInit();
			this.tabPcrProject.SuspendLayout();
			this.panel2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.chartPcrProgram).BeginInit();
			((System.ComponentModel.ISupportInitialize)this.scrollBar).BeginInit();
			this.grbPreview.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numericUpDown1).BeginInit();
			this.panelButtons.SuspendLayout();
			base.SuspendLayout();
			this.ultraTabPageControl3.Controls.Add(this.grdStep1);
			this.ultraTabPageControl3.Controls.Add(this.panelCycle1);
			resources.ApplyResources(this.ultraTabPageControl3, "ultraTabPageControl3");
			this.ultraTabPageControl3.Name = "ultraTabPageControl3";
			appearance.BackColor = System.Drawing.SystemColors.Window;
			appearance.BorderColor = System.Drawing.SystemColors.InactiveCaption;
			resources.ApplyResources(appearance.FontData, "appearance13.FontData");
			resources.ApplyResources(appearance, "appearance13");
			appearance.ForceApplyResources = "FontData|";
			this.grdStep1.DisplayLayout.Appearance = appearance;
			this.grdStep1.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			this.grdStep1.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
			appearance2.BackColor = System.Drawing.SystemColors.ActiveBorder;
			appearance2.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance2.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
			appearance2.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance2.FontData, "appearance14.FontData");
			resources.ApplyResources(appearance2, "appearance14");
			appearance2.ForceApplyResources = "FontData|";
			this.grdStep1.DisplayLayout.GroupByBox.Appearance = appearance2;
			appearance3.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance3.FontData, "appearance15.FontData");
			resources.ApplyResources(appearance3, "appearance15");
			appearance3.ForceApplyResources = "FontData|";
			this.grdStep1.DisplayLayout.GroupByBox.BandLabelAppearance = appearance3;
			this.grdStep1.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			appearance4.BackColor = System.Drawing.SystemColors.ControlLightLight;
			appearance4.BackColor2 = System.Drawing.SystemColors.Control;
			appearance4.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance4.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance4.FontData, "appearance16.FontData");
			resources.ApplyResources(appearance4, "appearance16");
			appearance4.ForceApplyResources = "FontData|";
			this.grdStep1.DisplayLayout.GroupByBox.PromptAppearance = appearance4;
			this.grdStep1.DisplayLayout.MaxColScrollRegions = 1;
			this.grdStep1.DisplayLayout.MaxRowScrollRegions = 1;
			appearance5.BackColor = System.Drawing.SystemColors.Window;
			appearance5.ForeColor = System.Drawing.SystemColors.ControlText;
			resources.ApplyResources(appearance5.FontData, "appearance17.FontData");
			resources.ApplyResources(appearance5, "appearance17");
			appearance5.ForceApplyResources = "FontData|";
			this.grdStep1.DisplayLayout.Override.ActiveCellAppearance = appearance5;
			this.grdStep1.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
			this.grdStep1.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
			appearance6.BackColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance6.FontData, "appearance18.FontData");
			resources.ApplyResources(appearance6, "appearance18");
			appearance6.ForceApplyResources = "FontData|";
			this.grdStep1.DisplayLayout.Override.CardAreaAppearance = appearance6;
			appearance7.BorderColor = System.Drawing.Color.Silver;
			appearance7.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
			resources.ApplyResources(appearance7.FontData, "appearance20.FontData");
			resources.ApplyResources(appearance7, "appearance20");
			appearance7.ForceApplyResources = "FontData|";
			this.grdStep1.DisplayLayout.Override.CellAppearance = appearance7;
			this.grdStep1.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
			this.grdStep1.DisplayLayout.Override.CellPadding = 0;
			appearance8.BackColor = System.Drawing.SystemColors.Control;
			appearance8.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance8.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
			appearance8.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance8.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance8.FontData, "appearance21.FontData");
			resources.ApplyResources(appearance8, "appearance21");
			appearance8.ForceApplyResources = "FontData|";
			this.grdStep1.DisplayLayout.Override.GroupByRowAppearance = appearance8;
			resources.ApplyResources(appearance9, "appearance22");
			resources.ApplyResources(appearance9.FontData, "appearance22.FontData");
			appearance9.ForceApplyResources = "FontData|";
			this.grdStep1.DisplayLayout.Override.HeaderAppearance = appearance9;
			this.grdStep1.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
			this.grdStep1.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
			appearance10.BackColor = System.Drawing.SystemColors.Window;
			appearance10.BorderColor = System.Drawing.Color.Silver;
			resources.ApplyResources(appearance10.FontData, "appearance23.FontData");
			resources.ApplyResources(appearance10, "appearance23");
			appearance10.ForceApplyResources = "FontData|";
			this.grdStep1.DisplayLayout.Override.RowAppearance = appearance10;
			this.grdStep1.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
			appearance11.BackColor = System.Drawing.SystemColors.ControlLight;
			resources.ApplyResources(appearance11.FontData, "appearance24.FontData");
			resources.ApplyResources(appearance11, "appearance24");
			appearance11.ForceApplyResources = "FontData|";
			this.grdStep1.DisplayLayout.Override.TemplateAddRowAppearance = appearance11;
			this.grdStep1.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
			this.grdStep1.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
			this.grdStep1.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
			resources.ApplyResources(this.grdStep1, "grdStep1");
			this.grdStep1.Name = "grdStep1";
			this.panelCycle1.Controls.Add(this.lblCycleCount1);
			this.panelCycle1.Controls.Add(this.numCycleCount1);
			resources.ApplyResources(this.panelCycle1, "panelCycle1");
			this.panelCycle1.Name = "panelCycle1";
			resources.ApplyResources(this.lblCycleCount1, "lblCycleCount1");
			this.lblCycleCount1.Name = "lblCycleCount1";
			resources.ApplyResources(this.numCycleCount1, "numCycleCount1");
			this.numCycleCount1.Name = "numCycleCount1";
			this.ultraTabPageControl4.Controls.Add(this.grdStep2);
			this.ultraTabPageControl4.Controls.Add(this.panelCycle2);
			resources.ApplyResources(this.ultraTabPageControl4, "ultraTabPageControl4");
			this.ultraTabPageControl4.Name = "ultraTabPageControl4";
			appearance12.BackColor = System.Drawing.SystemColors.Window;
			appearance12.BorderColor = System.Drawing.SystemColors.InactiveCaption;
			resources.ApplyResources(appearance12.FontData, "appearance34.FontData");
			resources.ApplyResources(appearance12, "appearance34");
			appearance12.ForceApplyResources = "FontData|";
			this.grdStep2.DisplayLayout.Appearance = appearance12;
			this.grdStep2.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			this.grdStep2.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
			appearance13.BackColor = System.Drawing.SystemColors.ActiveBorder;
			appearance13.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance13.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
			appearance13.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance13.FontData, "appearance35.FontData");
			resources.ApplyResources(appearance13, "appearance35");
			appearance13.ForceApplyResources = "FontData|";
			this.grdStep2.DisplayLayout.GroupByBox.Appearance = appearance13;
			appearance14.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance14.FontData, "appearance36.FontData");
			resources.ApplyResources(appearance14, "appearance36");
			appearance14.ForceApplyResources = "FontData|";
			this.grdStep2.DisplayLayout.GroupByBox.BandLabelAppearance = appearance14;
			this.grdStep2.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			appearance15.BackColor = System.Drawing.SystemColors.ControlLightLight;
			appearance15.BackColor2 = System.Drawing.SystemColors.Control;
			appearance15.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance15.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance15.FontData, "appearance37.FontData");
			resources.ApplyResources(appearance15, "appearance37");
			appearance15.ForceApplyResources = "FontData|";
			this.grdStep2.DisplayLayout.GroupByBox.PromptAppearance = appearance15;
			this.grdStep2.DisplayLayout.MaxColScrollRegions = 1;
			this.grdStep2.DisplayLayout.MaxRowScrollRegions = 1;
			appearance16.BackColor = System.Drawing.SystemColors.Window;
			appearance16.ForeColor = System.Drawing.SystemColors.ControlText;
			resources.ApplyResources(appearance16.FontData, "appearance38.FontData");
			resources.ApplyResources(appearance16, "appearance38");
			appearance16.ForceApplyResources = "FontData|";
			this.grdStep2.DisplayLayout.Override.ActiveCellAppearance = appearance16;
			this.grdStep2.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
			this.grdStep2.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
			appearance17.BackColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance17.FontData, "appearance39.FontData");
			resources.ApplyResources(appearance17, "appearance39");
			appearance17.ForceApplyResources = "FontData|";
			this.grdStep2.DisplayLayout.Override.CardAreaAppearance = appearance17;
			appearance18.BorderColor = System.Drawing.Color.Silver;
			appearance18.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
			resources.ApplyResources(appearance18.FontData, "appearance40.FontData");
			resources.ApplyResources(appearance18, "appearance40");
			appearance18.ForceApplyResources = "FontData|";
			this.grdStep2.DisplayLayout.Override.CellAppearance = appearance18;
			this.grdStep2.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
			this.grdStep2.DisplayLayout.Override.CellPadding = 0;
			appearance19.BackColor = System.Drawing.SystemColors.Control;
			appearance19.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance19.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
			appearance19.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance19.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance19.FontData, "appearance41.FontData");
			resources.ApplyResources(appearance19, "appearance41");
			appearance19.ForceApplyResources = "FontData|";
			this.grdStep2.DisplayLayout.Override.GroupByRowAppearance = appearance19;
			resources.ApplyResources(appearance20, "appearance42");
			resources.ApplyResources(appearance20.FontData, "appearance42.FontData");
			appearance20.ForceApplyResources = "FontData|";
			this.grdStep2.DisplayLayout.Override.HeaderAppearance = appearance20;
			this.grdStep2.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
			this.grdStep2.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
			appearance21.BackColor = System.Drawing.SystemColors.Window;
			appearance21.BorderColor = System.Drawing.Color.Silver;
			resources.ApplyResources(appearance21.FontData, "appearance43.FontData");
			resources.ApplyResources(appearance21, "appearance43");
			appearance21.ForceApplyResources = "FontData|";
			this.grdStep2.DisplayLayout.Override.RowAppearance = appearance21;
			this.grdStep2.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
			appearance22.BackColor = System.Drawing.SystemColors.ControlLight;
			resources.ApplyResources(appearance22.FontData, "appearance44.FontData");
			resources.ApplyResources(appearance22, "appearance44");
			appearance22.ForceApplyResources = "FontData|";
			this.grdStep2.DisplayLayout.Override.TemplateAddRowAppearance = appearance22;
			this.grdStep2.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
			this.grdStep2.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
			this.grdStep2.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
			resources.ApplyResources(this.grdStep2, "grdStep2");
			this.grdStep2.Name = "grdStep2";
			this.panelCycle2.Controls.Add(this.lblCycleCount2);
			this.panelCycle2.Controls.Add(this.numCycleCount2);
			resources.ApplyResources(this.panelCycle2, "panelCycle2");
			this.panelCycle2.Name = "panelCycle2";
			resources.ApplyResources(this.lblCycleCount2, "lblCycleCount2");
			this.lblCycleCount2.Name = "lblCycleCount2";
			resources.ApplyResources(this.numCycleCount2, "numCycleCount2");
			this.numCycleCount2.Name = "numCycleCount2";
			this.ultraTabPageControl5.Controls.Add(this.grdStep3);
			this.ultraTabPageControl5.Controls.Add(this.panelCycle3);
			resources.ApplyResources(this.ultraTabPageControl5, "ultraTabPageControl5");
			this.ultraTabPageControl5.Name = "ultraTabPageControl5";
			appearance23.BackColor = System.Drawing.SystemColors.Window;
			appearance23.BorderColor = System.Drawing.SystemColors.InactiveCaption;
			resources.ApplyResources(appearance23.FontData, "appearance45.FontData");
			resources.ApplyResources(appearance23, "appearance45");
			appearance23.ForceApplyResources = "FontData|";
			this.grdStep3.DisplayLayout.Appearance = appearance23;
			this.grdStep3.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			this.grdStep3.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
			appearance24.BackColor = System.Drawing.SystemColors.ActiveBorder;
			appearance24.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance24.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
			appearance24.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance24.FontData, "appearance46.FontData");
			resources.ApplyResources(appearance24, "appearance46");
			appearance24.ForceApplyResources = "FontData|";
			this.grdStep3.DisplayLayout.GroupByBox.Appearance = appearance24;
			appearance25.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance25.FontData, "appearance47.FontData");
			resources.ApplyResources(appearance25, "appearance47");
			appearance25.ForceApplyResources = "FontData|";
			this.grdStep3.DisplayLayout.GroupByBox.BandLabelAppearance = appearance25;
			this.grdStep3.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			appearance26.BackColor = System.Drawing.SystemColors.ControlLightLight;
			appearance26.BackColor2 = System.Drawing.SystemColors.Control;
			appearance26.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance26.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance26.FontData, "appearance48.FontData");
			resources.ApplyResources(appearance26, "appearance48");
			appearance26.ForceApplyResources = "FontData|";
			this.grdStep3.DisplayLayout.GroupByBox.PromptAppearance = appearance26;
			this.grdStep3.DisplayLayout.MaxColScrollRegions = 1;
			this.grdStep3.DisplayLayout.MaxRowScrollRegions = 1;
			appearance27.BackColor = System.Drawing.SystemColors.Window;
			appearance27.ForeColor = System.Drawing.SystemColors.ControlText;
			resources.ApplyResources(appearance27.FontData, "appearance49.FontData");
			resources.ApplyResources(appearance27, "appearance49");
			appearance27.ForceApplyResources = "FontData|";
			this.grdStep3.DisplayLayout.Override.ActiveCellAppearance = appearance27;
			this.grdStep3.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
			this.grdStep3.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
			appearance28.BackColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance28.FontData, "appearance50.FontData");
			resources.ApplyResources(appearance28, "appearance50");
			appearance28.ForceApplyResources = "FontData|";
			this.grdStep3.DisplayLayout.Override.CardAreaAppearance = appearance28;
			appearance29.BorderColor = System.Drawing.Color.Silver;
			appearance29.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
			resources.ApplyResources(appearance29.FontData, "appearance51.FontData");
			resources.ApplyResources(appearance29, "appearance51");
			appearance29.ForceApplyResources = "FontData|";
			this.grdStep3.DisplayLayout.Override.CellAppearance = appearance29;
			this.grdStep3.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
			this.grdStep3.DisplayLayout.Override.CellPadding = 0;
			appearance30.BackColor = System.Drawing.SystemColors.Control;
			appearance30.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance30.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
			appearance30.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance30.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance30.FontData, "appearance52.FontData");
			resources.ApplyResources(appearance30, "appearance52");
			appearance30.ForceApplyResources = "FontData|";
			this.grdStep3.DisplayLayout.Override.GroupByRowAppearance = appearance30;
			resources.ApplyResources(appearance31, "appearance53");
			resources.ApplyResources(appearance31.FontData, "appearance53.FontData");
			appearance31.ForceApplyResources = "FontData|";
			this.grdStep3.DisplayLayout.Override.HeaderAppearance = appearance31;
			this.grdStep3.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
			this.grdStep3.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
			appearance32.BackColor = System.Drawing.SystemColors.Window;
			appearance32.BorderColor = System.Drawing.Color.Silver;
			resources.ApplyResources(appearance32.FontData, "appearance54.FontData");
			resources.ApplyResources(appearance32, "appearance54");
			appearance32.ForceApplyResources = "FontData|";
			this.grdStep3.DisplayLayout.Override.RowAppearance = appearance32;
			this.grdStep3.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
			appearance33.BackColor = System.Drawing.SystemColors.ControlLight;
			resources.ApplyResources(appearance33.FontData, "appearance55.FontData");
			resources.ApplyResources(appearance33, "appearance55");
			appearance33.ForceApplyResources = "FontData|";
			this.grdStep3.DisplayLayout.Override.TemplateAddRowAppearance = appearance33;
			this.grdStep3.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
			this.grdStep3.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
			this.grdStep3.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
			resources.ApplyResources(this.grdStep3, "grdStep3");
			this.grdStep3.Name = "grdStep3";
			this.panelCycle3.Controls.Add(this.lblCycleCount3);
			this.panelCycle3.Controls.Add(this.numCycleCount3);
			resources.ApplyResources(this.panelCycle3, "panelCycle3");
			this.panelCycle3.Name = "panelCycle3";
			resources.ApplyResources(this.lblCycleCount3, "lblCycleCount3");
			this.lblCycleCount3.Name = "lblCycleCount3";
			resources.ApplyResources(this.numCycleCount3, "numCycleCount3");
			this.numCycleCount3.Name = "numCycleCount3";
			this.ultraTabPageControl6.Controls.Add(this.grdStep4);
			this.ultraTabPageControl6.Controls.Add(this.panelCycle4);
			resources.ApplyResources(this.ultraTabPageControl6, "ultraTabPageControl6");
			this.ultraTabPageControl6.Name = "ultraTabPageControl6";
			appearance34.BackColor = System.Drawing.SystemColors.Window;
			appearance34.BorderColor = System.Drawing.SystemColors.InactiveCaption;
			resources.ApplyResources(appearance34.FontData, "appearance56.FontData");
			resources.ApplyResources(appearance34, "appearance56");
			appearance34.ForceApplyResources = "FontData|";
			this.grdStep4.DisplayLayout.Appearance = appearance34;
			this.grdStep4.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			this.grdStep4.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
			appearance35.BackColor = System.Drawing.SystemColors.ActiveBorder;
			appearance35.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance35.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
			appearance35.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance35.FontData, "appearance57.FontData");
			resources.ApplyResources(appearance35, "appearance57");
			appearance35.ForceApplyResources = "FontData|";
			this.grdStep4.DisplayLayout.GroupByBox.Appearance = appearance35;
			appearance36.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance36.FontData, "appearance58.FontData");
			resources.ApplyResources(appearance36, "appearance58");
			appearance36.ForceApplyResources = "FontData|";
			this.grdStep4.DisplayLayout.GroupByBox.BandLabelAppearance = appearance36;
			this.grdStep4.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			appearance37.BackColor = System.Drawing.SystemColors.ControlLightLight;
			appearance37.BackColor2 = System.Drawing.SystemColors.Control;
			appearance37.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance37.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance37.FontData, "appearance59.FontData");
			resources.ApplyResources(appearance37, "appearance59");
			appearance37.ForceApplyResources = "FontData|";
			this.grdStep4.DisplayLayout.GroupByBox.PromptAppearance = appearance37;
			this.grdStep4.DisplayLayout.MaxColScrollRegions = 1;
			this.grdStep4.DisplayLayout.MaxRowScrollRegions = 1;
			appearance38.BackColor = System.Drawing.SystemColors.Window;
			appearance38.ForeColor = System.Drawing.SystemColors.ControlText;
			resources.ApplyResources(appearance38.FontData, "appearance60.FontData");
			resources.ApplyResources(appearance38, "appearance60");
			appearance38.ForceApplyResources = "FontData|";
			this.grdStep4.DisplayLayout.Override.ActiveCellAppearance = appearance38;
			this.grdStep4.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
			this.grdStep4.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
			appearance39.BackColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance39.FontData, "appearance61.FontData");
			resources.ApplyResources(appearance39, "appearance61");
			appearance39.ForceApplyResources = "FontData|";
			this.grdStep4.DisplayLayout.Override.CardAreaAppearance = appearance39;
			appearance40.BorderColor = System.Drawing.Color.Silver;
			appearance40.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
			resources.ApplyResources(appearance40.FontData, "appearance62.FontData");
			resources.ApplyResources(appearance40, "appearance62");
			appearance40.ForceApplyResources = "FontData|";
			this.grdStep4.DisplayLayout.Override.CellAppearance = appearance40;
			this.grdStep4.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
			this.grdStep4.DisplayLayout.Override.CellPadding = 0;
			appearance41.BackColor = System.Drawing.SystemColors.Control;
			appearance41.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance41.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
			appearance41.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance41.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance41.FontData, "appearance63.FontData");
			resources.ApplyResources(appearance41, "appearance63");
			appearance41.ForceApplyResources = "FontData|";
			this.grdStep4.DisplayLayout.Override.GroupByRowAppearance = appearance41;
			resources.ApplyResources(appearance42, "appearance64");
			resources.ApplyResources(appearance42.FontData, "appearance64.FontData");
			appearance42.ForceApplyResources = "FontData|";
			this.grdStep4.DisplayLayout.Override.HeaderAppearance = appearance42;
			this.grdStep4.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
			this.grdStep4.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
			appearance43.BackColor = System.Drawing.SystemColors.Window;
			appearance43.BorderColor = System.Drawing.Color.Silver;
			resources.ApplyResources(appearance43.FontData, "appearance65.FontData");
			resources.ApplyResources(appearance43, "appearance65");
			appearance43.ForceApplyResources = "FontData|";
			this.grdStep4.DisplayLayout.Override.RowAppearance = appearance43;
			this.grdStep4.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
			appearance44.BackColor = System.Drawing.SystemColors.ControlLight;
			resources.ApplyResources(appearance44.FontData, "appearance66.FontData");
			resources.ApplyResources(appearance44, "appearance66");
			appearance44.ForceApplyResources = "FontData|";
			this.grdStep4.DisplayLayout.Override.TemplateAddRowAppearance = appearance44;
			this.grdStep4.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
			this.grdStep4.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
			this.grdStep4.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
			resources.ApplyResources(this.grdStep4, "grdStep4");
			this.grdStep4.Name = "grdStep4";
			this.panelCycle4.Controls.Add(this.lblCycleCount4);
			this.panelCycle4.Controls.Add(this.numCycleCount4);
			resources.ApplyResources(this.panelCycle4, "panelCycle4");
			this.panelCycle4.Name = "panelCycle4";
			resources.ApplyResources(this.lblCycleCount4, "lblCycleCount4");
			this.lblCycleCount4.Name = "lblCycleCount4";
			resources.ApplyResources(this.numCycleCount4, "numCycleCount4");
			this.numCycleCount4.Name = "numCycleCount4";
			this.ultraTabPageControl7.Controls.Add(this.grdStep5);
			this.ultraTabPageControl7.Controls.Add(this.panelCycle5);
			resources.ApplyResources(this.ultraTabPageControl7, "ultraTabPageControl7");
			this.ultraTabPageControl7.Name = "ultraTabPageControl7";
			appearance45.BackColor = System.Drawing.SystemColors.Window;
			appearance45.BorderColor = System.Drawing.SystemColors.InactiveCaption;
			resources.ApplyResources(appearance45.FontData, "appearance67.FontData");
			resources.ApplyResources(appearance45, "appearance67");
			appearance45.ForceApplyResources = "FontData|";
			this.grdStep5.DisplayLayout.Appearance = appearance45;
			this.grdStep5.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			this.grdStep5.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
			appearance46.BackColor = System.Drawing.SystemColors.ActiveBorder;
			appearance46.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance46.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
			appearance46.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance46.FontData, "appearance68.FontData");
			resources.ApplyResources(appearance46, "appearance68");
			appearance46.ForceApplyResources = "FontData|";
			this.grdStep5.DisplayLayout.GroupByBox.Appearance = appearance46;
			appearance47.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance47.FontData, "appearance69.FontData");
			resources.ApplyResources(appearance47, "appearance69");
			appearance47.ForceApplyResources = "FontData|";
			this.grdStep5.DisplayLayout.GroupByBox.BandLabelAppearance = appearance47;
			this.grdStep5.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			appearance48.BackColor = System.Drawing.SystemColors.ControlLightLight;
			appearance48.BackColor2 = System.Drawing.SystemColors.Control;
			appearance48.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance48.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance48.FontData, "appearance70.FontData");
			resources.ApplyResources(appearance48, "appearance70");
			appearance48.ForceApplyResources = "FontData|";
			this.grdStep5.DisplayLayout.GroupByBox.PromptAppearance = appearance48;
			this.grdStep5.DisplayLayout.MaxColScrollRegions = 1;
			this.grdStep5.DisplayLayout.MaxRowScrollRegions = 1;
			appearance49.BackColor = System.Drawing.SystemColors.Window;
			appearance49.ForeColor = System.Drawing.SystemColors.ControlText;
			resources.ApplyResources(appearance49.FontData, "appearance71.FontData");
			resources.ApplyResources(appearance49, "appearance71");
			appearance49.ForceApplyResources = "FontData|";
			this.grdStep5.DisplayLayout.Override.ActiveCellAppearance = appearance49;
			this.grdStep5.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
			this.grdStep5.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
			appearance50.BackColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance50.FontData, "appearance72.FontData");
			resources.ApplyResources(appearance50, "appearance72");
			appearance50.ForceApplyResources = "FontData|";
			this.grdStep5.DisplayLayout.Override.CardAreaAppearance = appearance50;
			appearance51.BorderColor = System.Drawing.Color.Silver;
			appearance51.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
			resources.ApplyResources(appearance51.FontData, "appearance73.FontData");
			resources.ApplyResources(appearance51, "appearance73");
			appearance51.ForceApplyResources = "FontData|";
			this.grdStep5.DisplayLayout.Override.CellAppearance = appearance51;
			this.grdStep5.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
			this.grdStep5.DisplayLayout.Override.CellPadding = 0;
			appearance52.BackColor = System.Drawing.SystemColors.Control;
			appearance52.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance52.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
			appearance52.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance52.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance52.FontData, "appearance74.FontData");
			resources.ApplyResources(appearance52, "appearance74");
			appearance52.ForceApplyResources = "FontData|";
			this.grdStep5.DisplayLayout.Override.GroupByRowAppearance = appearance52;
			resources.ApplyResources(appearance53, "appearance75");
			resources.ApplyResources(appearance53.FontData, "appearance75.FontData");
			appearance53.ForceApplyResources = "FontData|";
			this.grdStep5.DisplayLayout.Override.HeaderAppearance = appearance53;
			this.grdStep5.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
			this.grdStep5.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
			appearance54.BackColor = System.Drawing.SystemColors.Window;
			appearance54.BorderColor = System.Drawing.Color.Silver;
			resources.ApplyResources(appearance54.FontData, "appearance76.FontData");
			resources.ApplyResources(appearance54, "appearance76");
			appearance54.ForceApplyResources = "FontData|";
			this.grdStep5.DisplayLayout.Override.RowAppearance = appearance54;
			this.grdStep5.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
			appearance55.BackColor = System.Drawing.SystemColors.ControlLight;
			resources.ApplyResources(appearance55.FontData, "appearance77.FontData");
			resources.ApplyResources(appearance55, "appearance77");
			appearance55.ForceApplyResources = "FontData|";
			this.grdStep5.DisplayLayout.Override.TemplateAddRowAppearance = appearance55;
			this.grdStep5.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
			this.grdStep5.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
			this.grdStep5.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
			resources.ApplyResources(this.grdStep5, "grdStep5");
			this.grdStep5.Name = "grdStep5";
			this.panelCycle5.Controls.Add(this.lblCycleCount5);
			this.panelCycle5.Controls.Add(this.numCycleCount5);
			resources.ApplyResources(this.panelCycle5, "panelCycle5");
			this.panelCycle5.Name = "panelCycle5";
			resources.ApplyResources(this.lblCycleCount5, "lblCycleCount5");
			this.lblCycleCount5.Name = "lblCycleCount5";
			resources.ApplyResources(this.numCycleCount5, "numCycleCount5");
			this.numCycleCount5.Name = "numCycleCount5";
			this.ultraTabPageControl8.Controls.Add(this.grdStep6);
			this.ultraTabPageControl8.Controls.Add(this.panelCycle6);
			resources.ApplyResources(this.ultraTabPageControl8, "ultraTabPageControl8");
			this.ultraTabPageControl8.Name = "ultraTabPageControl8";
			appearance56.BackColor = System.Drawing.SystemColors.Window;
			appearance56.BorderColor = System.Drawing.SystemColors.InactiveCaption;
			resources.ApplyResources(appearance56.FontData, "appearance78.FontData");
			resources.ApplyResources(appearance56, "appearance78");
			appearance56.ForceApplyResources = "FontData|";
			this.grdStep6.DisplayLayout.Appearance = appearance56;
			this.grdStep6.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			this.grdStep6.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
			appearance57.BackColor = System.Drawing.SystemColors.ActiveBorder;
			appearance57.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance57.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
			appearance57.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance57.FontData, "appearance79.FontData");
			resources.ApplyResources(appearance57, "appearance79");
			appearance57.ForceApplyResources = "FontData|";
			this.grdStep6.DisplayLayout.GroupByBox.Appearance = appearance57;
			appearance58.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance58.FontData, "appearance80.FontData");
			resources.ApplyResources(appearance58, "appearance80");
			appearance58.ForceApplyResources = "FontData|";
			this.grdStep6.DisplayLayout.GroupByBox.BandLabelAppearance = appearance58;
			this.grdStep6.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			appearance59.BackColor = System.Drawing.SystemColors.ControlLightLight;
			appearance59.BackColor2 = System.Drawing.SystemColors.Control;
			appearance59.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance59.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance59.FontData, "appearance81.FontData");
			resources.ApplyResources(appearance59, "appearance81");
			appearance59.ForceApplyResources = "FontData|";
			this.grdStep6.DisplayLayout.GroupByBox.PromptAppearance = appearance59;
			this.grdStep6.DisplayLayout.MaxColScrollRegions = 1;
			this.grdStep6.DisplayLayout.MaxRowScrollRegions = 1;
			appearance60.BackColor = System.Drawing.SystemColors.Window;
			appearance60.ForeColor = System.Drawing.SystemColors.ControlText;
			resources.ApplyResources(appearance60.FontData, "appearance82.FontData");
			resources.ApplyResources(appearance60, "appearance82");
			appearance60.ForceApplyResources = "FontData|";
			this.grdStep6.DisplayLayout.Override.ActiveCellAppearance = appearance60;
			this.grdStep6.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
			this.grdStep6.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
			appearance61.BackColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance61.FontData, "appearance83.FontData");
			resources.ApplyResources(appearance61, "appearance83");
			appearance61.ForceApplyResources = "FontData|";
			this.grdStep6.DisplayLayout.Override.CardAreaAppearance = appearance61;
			appearance62.BorderColor = System.Drawing.Color.Silver;
			appearance62.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
			resources.ApplyResources(appearance62.FontData, "appearance84.FontData");
			resources.ApplyResources(appearance62, "appearance84");
			appearance62.ForceApplyResources = "FontData|";
			this.grdStep6.DisplayLayout.Override.CellAppearance = appearance62;
			this.grdStep6.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
			this.grdStep6.DisplayLayout.Override.CellPadding = 0;
			appearance63.BackColor = System.Drawing.SystemColors.Control;
			appearance63.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance63.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
			appearance63.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance63.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance63.FontData, "appearance85.FontData");
			resources.ApplyResources(appearance63, "appearance85");
			appearance63.ForceApplyResources = "FontData|";
			this.grdStep6.DisplayLayout.Override.GroupByRowAppearance = appearance63;
			resources.ApplyResources(appearance64, "appearance86");
			resources.ApplyResources(appearance64.FontData, "appearance86.FontData");
			appearance64.ForceApplyResources = "FontData|";
			this.grdStep6.DisplayLayout.Override.HeaderAppearance = appearance64;
			this.grdStep6.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
			this.grdStep6.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
			appearance65.BackColor = System.Drawing.SystemColors.Window;
			appearance65.BorderColor = System.Drawing.Color.Silver;
			resources.ApplyResources(appearance65.FontData, "appearance87.FontData");
			resources.ApplyResources(appearance65, "appearance87");
			appearance65.ForceApplyResources = "FontData|";
			this.grdStep6.DisplayLayout.Override.RowAppearance = appearance65;
			this.grdStep6.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
			appearance66.BackColor = System.Drawing.SystemColors.ControlLight;
			resources.ApplyResources(appearance66.FontData, "appearance88.FontData");
			resources.ApplyResources(appearance66, "appearance88");
			appearance66.ForceApplyResources = "FontData|";
			this.grdStep6.DisplayLayout.Override.TemplateAddRowAppearance = appearance66;
			this.grdStep6.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
			this.grdStep6.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
			this.grdStep6.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
			resources.ApplyResources(this.grdStep6, "grdStep6");
			this.grdStep6.Name = "grdStep6";
			this.panelCycle6.Controls.Add(this.lblCycleCount6);
			this.panelCycle6.Controls.Add(this.numCycleCount6);
			resources.ApplyResources(this.panelCycle6, "panelCycle6");
			this.panelCycle6.Name = "panelCycle6";
			resources.ApplyResources(this.lblCycleCount6, "lblCycleCount6");
			this.lblCycleCount6.Name = "lblCycleCount6";
			resources.ApplyResources(this.numCycleCount6, "numCycleCount6");
			this.numCycleCount6.Name = "numCycleCount6";
			this.ultraTabPageControl9.Controls.Add(this.grdStep7);
			this.ultraTabPageControl9.Controls.Add(this.panelCycle7);
			resources.ApplyResources(this.ultraTabPageControl9, "ultraTabPageControl9");
			this.ultraTabPageControl9.Name = "ultraTabPageControl9";
			appearance67.BackColor = System.Drawing.SystemColors.Window;
			appearance67.BorderColor = System.Drawing.SystemColors.InactiveCaption;
			resources.ApplyResources(appearance67.FontData, "appearance89.FontData");
			resources.ApplyResources(appearance67, "appearance89");
			appearance67.ForceApplyResources = "FontData|";
			this.grdStep7.DisplayLayout.Appearance = appearance67;
			this.grdStep7.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			this.grdStep7.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
			appearance68.BackColor = System.Drawing.SystemColors.ActiveBorder;
			appearance68.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance68.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
			appearance68.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance68.FontData, "appearance90.FontData");
			resources.ApplyResources(appearance68, "appearance90");
			appearance68.ForceApplyResources = "FontData|";
			this.grdStep7.DisplayLayout.GroupByBox.Appearance = appearance68;
			appearance69.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance69.FontData, "appearance91.FontData");
			resources.ApplyResources(appearance69, "appearance91");
			appearance69.ForceApplyResources = "FontData|";
			this.grdStep7.DisplayLayout.GroupByBox.BandLabelAppearance = appearance69;
			this.grdStep7.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			appearance70.BackColor = System.Drawing.SystemColors.ControlLightLight;
			appearance70.BackColor2 = System.Drawing.SystemColors.Control;
			appearance70.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance70.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance70.FontData, "appearance92.FontData");
			resources.ApplyResources(appearance70, "appearance92");
			appearance70.ForceApplyResources = "FontData|";
			this.grdStep7.DisplayLayout.GroupByBox.PromptAppearance = appearance70;
			this.grdStep7.DisplayLayout.MaxColScrollRegions = 1;
			this.grdStep7.DisplayLayout.MaxRowScrollRegions = 1;
			appearance71.BackColor = System.Drawing.SystemColors.Window;
			appearance71.ForeColor = System.Drawing.SystemColors.ControlText;
			resources.ApplyResources(appearance71.FontData, "appearance93.FontData");
			resources.ApplyResources(appearance71, "appearance93");
			appearance71.ForceApplyResources = "FontData|";
			this.grdStep7.DisplayLayout.Override.ActiveCellAppearance = appearance71;
			this.grdStep7.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
			this.grdStep7.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
			appearance72.BackColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance72.FontData, "appearance94.FontData");
			resources.ApplyResources(appearance72, "appearance94");
			appearance72.ForceApplyResources = "FontData|";
			this.grdStep7.DisplayLayout.Override.CardAreaAppearance = appearance72;
			appearance73.BorderColor = System.Drawing.Color.Silver;
			appearance73.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
			resources.ApplyResources(appearance73.FontData, "appearance95.FontData");
			resources.ApplyResources(appearance73, "appearance95");
			appearance73.ForceApplyResources = "FontData|";
			this.grdStep7.DisplayLayout.Override.CellAppearance = appearance73;
			this.grdStep7.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
			this.grdStep7.DisplayLayout.Override.CellPadding = 0;
			appearance74.BackColor = System.Drawing.SystemColors.Control;
			appearance74.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance74.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
			appearance74.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance74.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance74.FontData, "appearance96.FontData");
			resources.ApplyResources(appearance74, "appearance96");
			appearance74.ForceApplyResources = "FontData|";
			this.grdStep7.DisplayLayout.Override.GroupByRowAppearance = appearance74;
			resources.ApplyResources(appearance75, "appearance97");
			resources.ApplyResources(appearance75.FontData, "appearance97.FontData");
			appearance75.ForceApplyResources = "FontData|";
			this.grdStep7.DisplayLayout.Override.HeaderAppearance = appearance75;
			this.grdStep7.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
			this.grdStep7.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
			appearance76.BackColor = System.Drawing.SystemColors.Window;
			appearance76.BorderColor = System.Drawing.Color.Silver;
			resources.ApplyResources(appearance76.FontData, "appearance98.FontData");
			resources.ApplyResources(appearance76, "appearance98");
			appearance76.ForceApplyResources = "FontData|";
			this.grdStep7.DisplayLayout.Override.RowAppearance = appearance76;
			this.grdStep7.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
			appearance77.BackColor = System.Drawing.SystemColors.ControlLight;
			resources.ApplyResources(appearance77.FontData, "appearance99.FontData");
			resources.ApplyResources(appearance77, "appearance99");
			appearance77.ForceApplyResources = "FontData|";
			this.grdStep7.DisplayLayout.Override.TemplateAddRowAppearance = appearance77;
			this.grdStep7.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
			this.grdStep7.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
			this.grdStep7.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
			resources.ApplyResources(this.grdStep7, "grdStep7");
			this.grdStep7.Name = "grdStep7";
			this.panelCycle7.Controls.Add(this.lblCycleCount7);
			this.panelCycle7.Controls.Add(this.numCycleCount7);
			resources.ApplyResources(this.panelCycle7, "panelCycle7");
			this.panelCycle7.Name = "panelCycle7";
			resources.ApplyResources(this.lblCycleCount7, "lblCycleCount7");
			this.lblCycleCount7.Name = "lblCycleCount7";
			resources.ApplyResources(this.numCycleCount7, "numCycleCount7");
			this.numCycleCount7.Name = "numCycleCount7";
			this.ultraTabPageControl10.Controls.Add(this.grdStep8);
			this.ultraTabPageControl10.Controls.Add(this.panelCycle8);
			resources.ApplyResources(this.ultraTabPageControl10, "ultraTabPageControl10");
			this.ultraTabPageControl10.Name = "ultraTabPageControl10";
			appearance78.BackColor = System.Drawing.SystemColors.Window;
			appearance78.BorderColor = System.Drawing.SystemColors.InactiveCaption;
			resources.ApplyResources(appearance78.FontData, "appearance100.FontData");
			resources.ApplyResources(appearance78, "appearance100");
			appearance78.ForceApplyResources = "FontData|";
			this.grdStep8.DisplayLayout.Appearance = appearance78;
			this.grdStep8.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			this.grdStep8.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
			appearance79.BackColor = System.Drawing.SystemColors.ActiveBorder;
			appearance79.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance79.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
			appearance79.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance79.FontData, "appearance101.FontData");
			resources.ApplyResources(appearance79, "appearance101");
			appearance79.ForceApplyResources = "FontData|";
			this.grdStep8.DisplayLayout.GroupByBox.Appearance = appearance79;
			appearance80.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance80.FontData, "appearance102.FontData");
			resources.ApplyResources(appearance80, "appearance102");
			appearance80.ForceApplyResources = "FontData|";
			this.grdStep8.DisplayLayout.GroupByBox.BandLabelAppearance = appearance80;
			this.grdStep8.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			appearance81.BackColor = System.Drawing.SystemColors.ControlLightLight;
			appearance81.BackColor2 = System.Drawing.SystemColors.Control;
			appearance81.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance81.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance81.FontData, "appearance103.FontData");
			resources.ApplyResources(appearance81, "appearance103");
			appearance81.ForceApplyResources = "FontData|";
			this.grdStep8.DisplayLayout.GroupByBox.PromptAppearance = appearance81;
			this.grdStep8.DisplayLayout.MaxColScrollRegions = 1;
			this.grdStep8.DisplayLayout.MaxRowScrollRegions = 1;
			appearance82.BackColor = System.Drawing.SystemColors.Window;
			appearance82.ForeColor = System.Drawing.SystemColors.ControlText;
			resources.ApplyResources(appearance82.FontData, "appearance104.FontData");
			resources.ApplyResources(appearance82, "appearance104");
			appearance82.ForceApplyResources = "FontData|";
			this.grdStep8.DisplayLayout.Override.ActiveCellAppearance = appearance82;
			this.grdStep8.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
			this.grdStep8.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
			appearance83.BackColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance83.FontData, "appearance105.FontData");
			resources.ApplyResources(appearance83, "appearance105");
			appearance83.ForceApplyResources = "FontData|";
			this.grdStep8.DisplayLayout.Override.CardAreaAppearance = appearance83;
			appearance84.BorderColor = System.Drawing.Color.Silver;
			appearance84.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
			resources.ApplyResources(appearance84.FontData, "appearance106.FontData");
			resources.ApplyResources(appearance84, "appearance106");
			appearance84.ForceApplyResources = "FontData|";
			this.grdStep8.DisplayLayout.Override.CellAppearance = appearance84;
			this.grdStep8.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
			this.grdStep8.DisplayLayout.Override.CellPadding = 0;
			appearance85.BackColor = System.Drawing.SystemColors.Control;
			appearance85.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance85.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
			appearance85.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance85.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance85.FontData, "appearance107.FontData");
			resources.ApplyResources(appearance85, "appearance107");
			appearance85.ForceApplyResources = "FontData|";
			this.grdStep8.DisplayLayout.Override.GroupByRowAppearance = appearance85;
			resources.ApplyResources(appearance86, "appearance108");
			resources.ApplyResources(appearance86.FontData, "appearance108.FontData");
			appearance86.ForceApplyResources = "FontData|";
			this.grdStep8.DisplayLayout.Override.HeaderAppearance = appearance86;
			this.grdStep8.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
			this.grdStep8.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
			appearance87.BackColor = System.Drawing.SystemColors.Window;
			appearance87.BorderColor = System.Drawing.Color.Silver;
			resources.ApplyResources(appearance87.FontData, "appearance109.FontData");
			resources.ApplyResources(appearance87, "appearance109");
			appearance87.ForceApplyResources = "FontData|";
			this.grdStep8.DisplayLayout.Override.RowAppearance = appearance87;
			this.grdStep8.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
			appearance88.BackColor = System.Drawing.SystemColors.ControlLight;
			resources.ApplyResources(appearance88.FontData, "appearance110.FontData");
			resources.ApplyResources(appearance88, "appearance110");
			appearance88.ForceApplyResources = "FontData|";
			this.grdStep8.DisplayLayout.Override.TemplateAddRowAppearance = appearance88;
			this.grdStep8.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
			this.grdStep8.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
			this.grdStep8.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
			resources.ApplyResources(this.grdStep8, "grdStep8");
			this.grdStep8.Name = "grdStep8";
			this.panelCycle8.Controls.Add(this.lblCycleCount8);
			this.panelCycle8.Controls.Add(this.numCycleCount8);
			resources.ApplyResources(this.panelCycle8, "panelCycle8");
			this.panelCycle8.Name = "panelCycle8";
			resources.ApplyResources(this.lblCycleCount8, "lblCycleCount8");
			this.lblCycleCount8.Name = "lblCycleCount8";
			resources.ApplyResources(this.numCycleCount8, "numCycleCount8");
			this.numCycleCount8.Name = "numCycleCount8";
			this.ultraTabPageControl11.Controls.Add(this.grdStep9);
			this.ultraTabPageControl11.Controls.Add(this.panelCycle9);
			resources.ApplyResources(this.ultraTabPageControl11, "ultraTabPageControl11");
			this.ultraTabPageControl11.Name = "ultraTabPageControl11";
			appearance89.BackColor = System.Drawing.SystemColors.Window;
			appearance89.BorderColor = System.Drawing.SystemColors.InactiveCaption;
			resources.ApplyResources(appearance89.FontData, "appearance1.FontData");
			resources.ApplyResources(appearance89, "appearance1");
			appearance89.ForceApplyResources = "FontData|";
			this.grdStep9.DisplayLayout.Appearance = appearance89;
			this.grdStep9.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			this.grdStep9.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
			appearance90.BackColor = System.Drawing.SystemColors.ActiveBorder;
			appearance90.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance90.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
			appearance90.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance90.FontData, "appearance2.FontData");
			resources.ApplyResources(appearance90, "appearance2");
			appearance90.ForceApplyResources = "FontData|";
			this.grdStep9.DisplayLayout.GroupByBox.Appearance = appearance90;
			appearance91.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance91.FontData, "appearance3.FontData");
			resources.ApplyResources(appearance91, "appearance3");
			appearance91.ForceApplyResources = "FontData|";
			this.grdStep9.DisplayLayout.GroupByBox.BandLabelAppearance = appearance91;
			this.grdStep9.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			appearance92.BackColor = System.Drawing.SystemColors.ControlLightLight;
			appearance92.BackColor2 = System.Drawing.SystemColors.Control;
			appearance92.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance92.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance92.FontData, "appearance4.FontData");
			resources.ApplyResources(appearance92, "appearance4");
			appearance92.ForceApplyResources = "FontData|";
			this.grdStep9.DisplayLayout.GroupByBox.PromptAppearance = appearance92;
			this.grdStep9.DisplayLayout.MaxColScrollRegions = 1;
			this.grdStep9.DisplayLayout.MaxRowScrollRegions = 1;
			appearance93.BackColor = System.Drawing.SystemColors.Window;
			appearance93.ForeColor = System.Drawing.SystemColors.ControlText;
			resources.ApplyResources(appearance93.FontData, "appearance5.FontData");
			resources.ApplyResources(appearance93, "appearance5");
			appearance93.ForceApplyResources = "FontData|";
			this.grdStep9.DisplayLayout.Override.ActiveCellAppearance = appearance93;
			this.grdStep9.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
			this.grdStep9.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
			appearance94.BackColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance94.FontData, "appearance6.FontData");
			resources.ApplyResources(appearance94, "appearance6");
			appearance94.ForceApplyResources = "FontData|";
			this.grdStep9.DisplayLayout.Override.CardAreaAppearance = appearance94;
			appearance95.BorderColor = System.Drawing.Color.Silver;
			appearance95.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
			resources.ApplyResources(appearance95.FontData, "appearance7.FontData");
			resources.ApplyResources(appearance95, "appearance7");
			appearance95.ForceApplyResources = "FontData|";
			this.grdStep9.DisplayLayout.Override.CellAppearance = appearance95;
			this.grdStep9.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
			this.grdStep9.DisplayLayout.Override.CellPadding = 0;
			appearance96.BackColor = System.Drawing.SystemColors.Control;
			appearance96.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance96.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
			appearance96.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance96.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance96.FontData, "appearance8.FontData");
			resources.ApplyResources(appearance96, "appearance8");
			appearance96.ForceApplyResources = "FontData|";
			this.grdStep9.DisplayLayout.Override.GroupByRowAppearance = appearance96;
			resources.ApplyResources(appearance97, "appearance9");
			resources.ApplyResources(appearance97.FontData, "appearance9.FontData");
			appearance97.ForceApplyResources = "FontData|";
			this.grdStep9.DisplayLayout.Override.HeaderAppearance = appearance97;
			this.grdStep9.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
			this.grdStep9.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
			appearance98.BackColor = System.Drawing.SystemColors.Window;
			appearance98.BorderColor = System.Drawing.Color.Silver;
			resources.ApplyResources(appearance98.FontData, "appearance10.FontData");
			resources.ApplyResources(appearance98, "appearance10");
			appearance98.ForceApplyResources = "FontData|";
			this.grdStep9.DisplayLayout.Override.RowAppearance = appearance98;
			this.grdStep9.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
			appearance99.BackColor = System.Drawing.SystemColors.ControlLight;
			resources.ApplyResources(appearance99.FontData, "appearance11.FontData");
			resources.ApplyResources(appearance99, "appearance11");
			appearance99.ForceApplyResources = "FontData|";
			this.grdStep9.DisplayLayout.Override.TemplateAddRowAppearance = appearance99;
			this.grdStep9.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
			this.grdStep9.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
			this.grdStep9.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
			resources.ApplyResources(this.grdStep9, "grdStep9");
			this.grdStep9.Name = "grdStep9";
			this.panelCycle9.Controls.Add(this.lblCycleCount9);
			this.panelCycle9.Controls.Add(this.numCycleCount9);
			resources.ApplyResources(this.panelCycle9, "panelCycle9");
			this.panelCycle9.Name = "panelCycle9";
			resources.ApplyResources(this.lblCycleCount9, "lblCycleCount9");
			this.lblCycleCount9.Name = "lblCycleCount9";
			resources.ApplyResources(this.numCycleCount9, "numCycleCount9");
			this.numCycleCount9.Name = "numCycleCount9";
			this.ultraTabPageControl1.Controls.Add(this.tabAmplification);
			this.ultraTabPageControl1.Controls.Add(this.pnlSetProgramButton);
			resources.ApplyResources(this.ultraTabPageControl1, "ultraTabPageControl1");
			this.ultraTabPageControl1.Name = "ultraTabPageControl1";
			this.tabAmplification.CloseButtonLocation = Infragistics.Win.UltraWinTabs.TabCloseButtonLocation.None;
			this.tabAmplification.Controls.Add(this.ultraTabPageControl3);
			this.tabAmplification.Controls.Add(this.ultraTabSharedControlsPage2);
			this.tabAmplification.Controls.Add(this.ultraTabPageControl4);
			this.tabAmplification.Controls.Add(this.ultraTabPageControl5);
			this.tabAmplification.Controls.Add(this.ultraTabPageControl6);
			this.tabAmplification.Controls.Add(this.ultraTabPageControl7);
			this.tabAmplification.Controls.Add(this.ultraTabPageControl8);
			this.tabAmplification.Controls.Add(this.ultraTabPageControl9);
			this.tabAmplification.Controls.Add(this.ultraTabPageControl10);
			this.tabAmplification.Controls.Add(this.ultraTabPageControl11);
			resources.ApplyResources(this.tabAmplification, "tabAmplification");
			this.tabAmplification.Name = "tabAmplification";
			this.tabAmplification.ScrollButtons = Infragistics.Win.UltraWinTabs.TabScrollButtons.None;
			this.tabAmplification.SharedControlsPage = this.ultraTabSharedControlsPage2;
			this.tabAmplification.ShowTabListButton = Infragistics.Win.DefaultableBoolean.False;
			ultraTab.TabPage = this.ultraTabPageControl3;
			resources.ApplyResources(ultraTab, "ultraTab3");
			ultraTab.Visible = false;
			ultraTab.ForceApplyResources = "";
			ultraTab2.TabPage = this.ultraTabPageControl4;
			resources.ApplyResources(ultraTab2, "ultraTab4");
			ultraTab2.Visible = false;
			ultraTab2.ForceApplyResources = "";
			ultraTab3.TabPage = this.ultraTabPageControl5;
			resources.ApplyResources(ultraTab3, "ultraTab5");
			ultraTab3.Visible = false;
			ultraTab3.ForceApplyResources = "";
			ultraTab4.TabPage = this.ultraTabPageControl6;
			resources.ApplyResources(ultraTab4, "ultraTab6");
			ultraTab4.Visible = false;
			ultraTab4.ForceApplyResources = "";
			ultraTab5.TabPage = this.ultraTabPageControl7;
			resources.ApplyResources(ultraTab5, "ultraTab7");
			ultraTab5.Visible = false;
			ultraTab5.ForceApplyResources = "";
			ultraTab6.TabPage = this.ultraTabPageControl8;
			resources.ApplyResources(ultraTab6, "ultraTab8");
			ultraTab6.Visible = false;
			ultraTab6.ForceApplyResources = "";
			ultraTab7.TabPage = this.ultraTabPageControl9;
			resources.ApplyResources(ultraTab7, "ultraTab9");
			ultraTab7.Visible = false;
			ultraTab7.ForceApplyResources = "";
			ultraTab8.TabPage = this.ultraTabPageControl10;
			resources.ApplyResources(ultraTab8, "ultraTab10");
			ultraTab8.Visible = false;
			ultraTab8.ForceApplyResources = "";
			ultraTab9.TabPage = this.ultraTabPageControl11;
			resources.ApplyResources(ultraTab9, "ultraTab11");
			ultraTab9.Visible = false;
			ultraTab9.ForceApplyResources = "";
			this.tabAmplification.Tabs.AddRange(new Infragistics.Win.UltraWinTabControl.UltraTab[9] { ultraTab, ultraTab2, ultraTab3, ultraTab4, ultraTab5, ultraTab6, ultraTab7, ultraTab8, ultraTab9 });
			this.tabAmplification.MouseClick += new System.Windows.Forms.MouseEventHandler(tabAmplification_MouseClick);
			resources.ApplyResources(this.ultraTabSharedControlsPage2, "ultraTabSharedControlsPage2");
			this.ultraTabSharedControlsPage2.Name = "ultraTabSharedControlsPage2";
			this.pnlSetProgramButton.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.pnlSetProgramButton.Controls.Add(this.btnDeleteStep);
			this.pnlSetProgramButton.Controls.Add(this.btnMoveDown);
			this.pnlSetProgramButton.Controls.Add(this.btnDeleteSegment);
			this.pnlSetProgramButton.Controls.Add(this.btnAddStep);
			this.pnlSetProgramButton.Controls.Add(this.btnAddSegment);
			this.pnlSetProgramButton.Controls.Add(this.btnMoveUp);
			resources.ApplyResources(this.pnlSetProgramButton, "pnlSetProgramButton");
			this.pnlSetProgramButton.Name = "pnlSetProgramButton";
			resources.ApplyResources(this.btnDeleteStep, "btnDeleteStep");
			this.btnDeleteStep.Name = "btnDeleteStep";
			this.btnDeleteStep.UseVisualStyleBackColor = true;
			this.btnDeleteStep.Click += new System.EventHandler(btnDeleteStep_Click);
			resources.ApplyResources(this.btnMoveDown, "btnMoveDown");
			this.btnMoveDown.Name = "btnMoveDown";
			this.btnMoveDown.UseVisualStyleBackColor = true;
			resources.ApplyResources(this.btnDeleteSegment, "btnDeleteSegment");
			this.btnDeleteSegment.Name = "btnDeleteSegment";
			this.btnDeleteSegment.UseVisualStyleBackColor = true;
			this.btnDeleteSegment.Click += new System.EventHandler(btnDeleteSegment_Click);
			resources.ApplyResources(this.btnAddStep, "btnAddStep");
			this.btnAddStep.Name = "btnAddStep";
			this.btnAddStep.UseVisualStyleBackColor = true;
			this.btnAddStep.Click += new System.EventHandler(btnAddStep_Click);
			resources.ApplyResources(this.btnAddSegment, "btnAddSegment");
			this.btnAddSegment.Name = "btnAddSegment";
			this.btnAddSegment.UseVisualStyleBackColor = true;
			this.btnAddSegment.Click += new System.EventHandler(btnAddSegment_Click);
			resources.ApplyResources(this.btnMoveUp, "btnMoveUp");
			this.btnMoveUp.Name = "btnMoveUp";
			this.btnMoveUp.UseVisualStyleBackColor = true;
			this.ultraTabPageControl2.Controls.Add(this.pnlMelting);
			resources.ApplyResources(this.ultraTabPageControl2, "ultraTabPageControl2");
			this.ultraTabPageControl2.Name = "ultraTabPageControl2";
			this.pnlMelting.Controls.Add(this.chkMeltingSegment);
			this.pnlMelting.Controls.Add(this.grbMeltingSegment);
			this.pnlMelting.Controls.Add(this.grbHRMSegment);
			resources.ApplyResources(this.pnlMelting, "pnlMelting");
			this.pnlMelting.Name = "pnlMelting";
			resources.ApplyResources(this.chkMeltingSegment, "chkMeltingSegment");
			this.chkMeltingSegment.Name = "chkMeltingSegment";
			this.chkMeltingSegment.UseVisualStyleBackColor = true;
			this.grbMeltingSegment.Controls.Add(this.numStopTemperature);
			this.grbMeltingSegment.Controls.Add(this.numStartTemperature);
			this.grbMeltingSegment.Controls.Add(this.cmbStep);
			this.grbMeltingSegment.Controls.Add(this.lblStep);
			this.grbMeltingSegment.Controls.Add(this.lblStopTemperature);
			this.grbMeltingSegment.Controls.Add(this.lblStartTemperature);
			resources.ApplyResources(this.grbMeltingSegment, "grbMeltingSegment");
			this.grbMeltingSegment.Name = "grbMeltingSegment";
			this.grbMeltingSegment.TabStop = false;
			this.numStopTemperature.DecimalPlaces = 1;
			resources.ApplyResources(this.numStopTemperature, "numStopTemperature");
			this.numStopTemperature.Name = "numStopTemperature";
			this.numStartTemperature.DecimalPlaces = 1;
			resources.ApplyResources(this.numStartTemperature, "numStartTemperature");
			this.numStartTemperature.Name = "numStartTemperature";
			this.cmbStep.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbStep.FormattingEnabled = true;
			resources.ApplyResources(this.cmbStep, "cmbStep");
			this.cmbStep.Name = "cmbStep";
			resources.ApplyResources(this.lblStep, "lblStep");
			this.lblStep.Name = "lblStep";
			resources.ApplyResources(this.lblStopTemperature, "lblStopTemperature");
			this.lblStopTemperature.Name = "lblStopTemperature";
			resources.ApplyResources(this.lblStartTemperature, "lblStartTemperature");
			this.lblStartTemperature.Name = "lblStartTemperature";
			this.grbHRMSegment.Controls.Add(this.numHRMHoldTime);
			this.grbHRMSegment.Controls.Add(this.lblHRMHoldTime);
			this.grbHRMSegment.Controls.Add(this.cmbHRMRate);
			this.grbHRMSegment.Controls.Add(this.lblHRMRate);
			this.grbHRMSegment.Controls.Add(this.cmbHRMMode);
			this.grbHRMSegment.Controls.Add(this.lblHRMMode);
			this.grbHRMSegment.Controls.Add(this.numHRMStopTemperature);
			this.grbHRMSegment.Controls.Add(this.chkHRMSegment);
			this.grbHRMSegment.Controls.Add(this.numHRMStartTemperature);
			this.grbHRMSegment.Controls.Add(this.cmbHRMInterval);
			this.grbHRMSegment.Controls.Add(this.lblHRMInterval);
			this.grbHRMSegment.Controls.Add(this.lblHRMStopTemperature);
			this.grbHRMSegment.Controls.Add(this.lblHRMStartTemperature);
			resources.ApplyResources(this.grbHRMSegment, "grbHRMSegment");
			this.grbHRMSegment.Name = "grbHRMSegment";
			this.grbHRMSegment.TabStop = false;
			resources.ApplyResources(this.numHRMHoldTime, "numHRMHoldTime");
			this.numHRMHoldTime.Maximum = new decimal(new int[4] { 30, 0, 0, 0 });
			this.numHRMHoldTime.Minimum = new decimal(new int[4] { 7, 0, 0, 0 });
			this.numHRMHoldTime.Name = "numHRMHoldTime";
			this.numHRMHoldTime.Value = new decimal(new int[4] { 7, 0, 0, 0 });
			resources.ApplyResources(this.lblHRMHoldTime, "lblHRMHoldTime");
			this.lblHRMHoldTime.Name = "lblHRMHoldTime";
			this.lblHRMHoldTime.Click += new System.EventHandler(lblHRMHoldTime_Click);
			this.cmbHRMRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbHRMRate.FormattingEnabled = true;
			resources.ApplyResources(this.cmbHRMRate, "cmbHRMRate");
			this.cmbHRMRate.Name = "cmbHRMRate";
			resources.ApplyResources(this.lblHRMRate, "lblHRMRate");
			this.lblHRMRate.Name = "lblHRMRate";
			this.cmbHRMMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbHRMMode.FormattingEnabled = true;
			resources.ApplyResources(this.cmbHRMMode, "cmbHRMMode");
			this.cmbHRMMode.Name = "cmbHRMMode";
			resources.ApplyResources(this.lblHRMMode, "lblHRMMode");
			this.lblHRMMode.Name = "lblHRMMode";
			this.numHRMStopTemperature.DecimalPlaces = 1;
			resources.ApplyResources(this.numHRMStopTemperature, "numHRMStopTemperature");
			this.numHRMStopTemperature.Name = "numHRMStopTemperature";
			resources.ApplyResources(this.chkHRMSegment, "chkHRMSegment");
			this.chkHRMSegment.Name = "chkHRMSegment";
			this.chkHRMSegment.UseVisualStyleBackColor = true;
			this.numHRMStartTemperature.DecimalPlaces = 1;
			resources.ApplyResources(this.numHRMStartTemperature, "numHRMStartTemperature");
			this.numHRMStartTemperature.Name = "numHRMStartTemperature";
			this.cmbHRMInterval.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbHRMInterval.FormattingEnabled = true;
			resources.ApplyResources(this.cmbHRMInterval, "cmbHRMInterval");
			this.cmbHRMInterval.Name = "cmbHRMInterval";
			resources.ApplyResources(this.lblHRMInterval, "lblHRMInterval");
			this.lblHRMInterval.Name = "lblHRMInterval";
			resources.ApplyResources(this.lblHRMStopTemperature, "lblHRMStopTemperature");
			this.lblHRMStopTemperature.Name = "lblHRMStopTemperature";
			resources.ApplyResources(this.lblHRMStartTemperature, "lblHRMStartTemperature");
			this.lblHRMStartTemperature.Name = "lblHRMStartTemperature";
			this.ultraTabPageControl12.Controls.Add(this.pnlAnalysisOption);
			resources.ApplyResources(this.ultraTabPageControl12, "ultraTabPageControl12");
			this.ultraTabPageControl12.Name = "ultraTabPageControl12";
			resources.ApplyResources(this.pnlAnalysisOption, "pnlAnalysisOption");
			this.pnlAnalysisOption.Name = "pnlAnalysisOption";
			resources.ApplyResources(this.ultraTabPageControl13, "ultraTabPageControl13");
			this.ultraTabPageControl13.Name = "ultraTabPageControl13";
			this.ultraTabPageControl14.Controls.Add(this.grdCrossTalk);
			resources.ApplyResources(this.ultraTabPageControl14, "ultraTabPageControl14");
			this.ultraTabPageControl14.Name = "ultraTabPageControl14";
			appearance100.BackColor = System.Drawing.SystemColors.Window;
			appearance100.BorderColor = System.Drawing.SystemColors.InactiveCaption;
			resources.ApplyResources(appearance100.FontData, "appearance12.FontData");
			resources.ApplyResources(appearance100, "appearance12");
			appearance100.ForceApplyResources = "FontData|";
			this.grdCrossTalk.DisplayLayout.Appearance = appearance100;
			this.grdCrossTalk.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			this.grdCrossTalk.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
			appearance101.BackColor = System.Drawing.SystemColors.ActiveBorder;
			appearance101.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance101.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
			appearance101.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance101.FontData, "appearance19.FontData");
			resources.ApplyResources(appearance101, "appearance19");
			appearance101.ForceApplyResources = "FontData|";
			this.grdCrossTalk.DisplayLayout.GroupByBox.Appearance = appearance101;
			appearance102.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance102.FontData, "appearance25.FontData");
			resources.ApplyResources(appearance102, "appearance25");
			appearance102.ForceApplyResources = "FontData|";
			this.grdCrossTalk.DisplayLayout.GroupByBox.BandLabelAppearance = appearance102;
			this.grdCrossTalk.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			appearance103.BackColor = System.Drawing.SystemColors.ControlLightLight;
			appearance103.BackColor2 = System.Drawing.SystemColors.Control;
			appearance103.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance103.ForeColor = System.Drawing.SystemColors.GrayText;
			resources.ApplyResources(appearance103.FontData, "appearance26.FontData");
			resources.ApplyResources(appearance103, "appearance26");
			appearance103.ForceApplyResources = "FontData|";
			this.grdCrossTalk.DisplayLayout.GroupByBox.PromptAppearance = appearance103;
			this.grdCrossTalk.DisplayLayout.MaxColScrollRegions = 1;
			this.grdCrossTalk.DisplayLayout.MaxRowScrollRegions = 1;
			appearance104.BackColor = System.Drawing.SystemColors.Window;
			appearance104.ForeColor = System.Drawing.SystemColors.ControlText;
			resources.ApplyResources(appearance104.FontData, "appearance27.FontData");
			resources.ApplyResources(appearance104, "appearance27");
			appearance104.ForceApplyResources = "FontData|";
			this.grdCrossTalk.DisplayLayout.Override.ActiveCellAppearance = appearance104;
			this.grdCrossTalk.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
			this.grdCrossTalk.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
			appearance105.BackColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance105.FontData, "appearance28.FontData");
			resources.ApplyResources(appearance105, "appearance28");
			appearance105.ForceApplyResources = "FontData|";
			this.grdCrossTalk.DisplayLayout.Override.CardAreaAppearance = appearance105;
			appearance106.BorderColor = System.Drawing.Color.Silver;
			appearance106.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
			resources.ApplyResources(appearance106.FontData, "appearance29.FontData");
			resources.ApplyResources(appearance106, "appearance29");
			appearance106.ForceApplyResources = "FontData|";
			this.grdCrossTalk.DisplayLayout.Override.CellAppearance = appearance106;
			this.grdCrossTalk.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
			this.grdCrossTalk.DisplayLayout.Override.CellPadding = 0;
			appearance107.BackColor = System.Drawing.SystemColors.Control;
			appearance107.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance107.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
			appearance107.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance107.BorderColor = System.Drawing.SystemColors.Window;
			resources.ApplyResources(appearance107.FontData, "appearance30.FontData");
			resources.ApplyResources(appearance107, "appearance30");
			appearance107.ForceApplyResources = "FontData|";
			this.grdCrossTalk.DisplayLayout.Override.GroupByRowAppearance = appearance107;
			resources.ApplyResources(appearance108, "appearance31");
			resources.ApplyResources(appearance108.FontData, "appearance31.FontData");
			appearance108.ForceApplyResources = "FontData|";
			this.grdCrossTalk.DisplayLayout.Override.HeaderAppearance = appearance108;
			this.grdCrossTalk.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
			this.grdCrossTalk.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
			appearance109.BackColor = System.Drawing.SystemColors.Window;
			appearance109.BorderColor = System.Drawing.Color.Silver;
			resources.ApplyResources(appearance109.FontData, "appearance32.FontData");
			resources.ApplyResources(appearance109, "appearance32");
			appearance109.ForceApplyResources = "FontData|";
			this.grdCrossTalk.DisplayLayout.Override.RowAppearance = appearance109;
			this.grdCrossTalk.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
			appearance110.BackColor = System.Drawing.SystemColors.ControlLight;
			resources.ApplyResources(appearance110.FontData, "appearance33.FontData");
			resources.ApplyResources(appearance110, "appearance33");
			appearance110.ForceApplyResources = "FontData|";
			this.grdCrossTalk.DisplayLayout.Override.TemplateAddRowAppearance = appearance110;
			this.grdCrossTalk.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
			this.grdCrossTalk.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
			this.grdCrossTalk.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
			resources.ApplyResources(this.grdCrossTalk, "grdCrossTalk");
			this.grdCrossTalk.Name = "grdCrossTalk";
			this.tabPcrProject.CloseButtonLocation = Infragistics.Win.UltraWinTabs.TabCloseButtonLocation.None;
			this.tabPcrProject.Controls.Add(this.ultraTabSharedControlsPage1);
			this.tabPcrProject.Controls.Add(this.ultraTabPageControl2);
			this.tabPcrProject.Controls.Add(this.ultraTabPageControl1);
			this.tabPcrProject.Controls.Add(this.ultraTabPageControl12);
			this.tabPcrProject.Controls.Add(this.ultraTabPageControl13);
			this.tabPcrProject.Controls.Add(this.ultraTabPageControl14);
			resources.ApplyResources(this.tabPcrProject, "tabPcrProject");
			this.tabPcrProject.Name = "tabPcrProject";
			this.tabPcrProject.SharedControlsPage = this.ultraTabSharedControlsPage1;
			ultraTab10.AllowClosing = Infragistics.Win.DefaultableBoolean.False;
			ultraTab10.AllowMoving = Infragistics.Win.DefaultableBoolean.False;
			ultraTab10.CloseButtonVisibility = Infragistics.Win.UltraWinTabs.TabCloseButtonVisibility.Never;
			ultraTab10.Key = "Holding and cycling";
			ultraTab10.TabPage = this.ultraTabPageControl1;
			resources.ApplyResources(ultraTab10, "ultraTab1");
			ultraTab10.ForceApplyResources = "";
			ultraTab11.AllowClosing = Infragistics.Win.DefaultableBoolean.False;
			ultraTab11.AllowMoving = Infragistics.Win.DefaultableBoolean.False;
			ultraTab11.CloseButtonVisibility = Infragistics.Win.UltraWinTabs.TabCloseButtonVisibility.Never;
			ultraTab11.Key = "Melting";
			ultraTab11.TabPage = this.ultraTabPageControl2;
			resources.ApplyResources(ultraTab11, "ultraTab2");
			ultraTab11.ForceApplyResources = "";
			ultraTab12.AllowClosing = Infragistics.Win.DefaultableBoolean.False;
			ultraTab12.AllowMoving = Infragistics.Win.DefaultableBoolean.False;
			ultraTab12.CloseButtonVisibility = Infragistics.Win.UltraWinTabs.TabCloseButtonVisibility.Never;
			ultraTab12.Key = "Analysis Option";
			ultraTab12.TabPage = this.ultraTabPageControl12;
			resources.ApplyResources(ultraTab12, "ultraTab12");
			ultraTab12.ForceApplyResources = "";
			ultraTab13.Key = "Rule";
			ultraTab13.TabPage = this.ultraTabPageControl13;
			resources.ApplyResources(ultraTab13, "ultraTab13");
			ultraTab13.ForceApplyResources = "";
			ultraTab14.Key = "Cross Talk";
			ultraTab14.TabPage = this.ultraTabPageControl14;
			resources.ApplyResources(ultraTab14, "ultraTab14");
			ultraTab14.ForceApplyResources = "";
			this.tabPcrProject.Tabs.AddRange(new Infragistics.Win.UltraWinTabControl.UltraTab[5] { ultraTab10, ultraTab11, ultraTab12, ultraTab13, ultraTab14 });
			this.tabPcrProject.SelectedTabChanged += new Infragistics.Win.UltraWinTabControl.SelectedTabChangedEventHandler(tabPcrProject_SelectedTabChanged);
			resources.ApplyResources(this.ultraTabSharedControlsPage1, "ultraTabSharedControlsPage1");
			this.ultraTabSharedControlsPage1.Name = "ultraTabSharedControlsPage1";
			resources.ApplyResources(this.mnuPcrProgram, "mnuPcrProgram");
			this.mnuPcrProgram.Name = "mnuPcrProgram";
			this.panel2.Controls.Add(this.tabPcrProject);
			resources.ApplyResources(this.panel2, "panel2");
			this.panel2.Name = "panel2";
			this.chartPcrProgram.ChartType = Infragistics.UltraChart.Shared.Styles.ChartType.StepLineChart;
			this.chartPcrProgram.Axis.BackColor = System.Drawing.Color.FromArgb(255, 248, 220);
			paintElement.ElementType = Infragistics.UltraChart.Shared.Styles.PaintElementType.None;
			paintElement.Fill = System.Drawing.Color.FromArgb(255, 248, 220);
			this.chartPcrProgram.Axis.PE = paintElement;
			this.chartPcrProgram.Axis.X.Extent = 10;
			this.chartPcrProgram.Axis.X.Labels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.X.Labels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.X.Labels.ItemFormatString = "<ITEM_LABEL:MM-dd-yy>";
			this.chartPcrProgram.Axis.X.Labels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.X.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.VerticalLeftFacing;
			this.chartPcrProgram.Axis.X.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.X.Labels.SeriesLabels.FormatString = "";
			this.chartPcrProgram.Axis.X.Labels.SeriesLabels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.X.Labels.SeriesLabels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.X.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.VerticalLeftFacing;
			this.chartPcrProgram.Axis.X.Labels.SeriesLabels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.X.Labels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.X.LineThickness = 1;
			this.chartPcrProgram.Axis.X.MajorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.X.MajorGridLines.Color = System.Drawing.Color.Gainsboro;
			this.chartPcrProgram.Axis.X.MajorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.X.MajorGridLines.Visible = true;
			this.chartPcrProgram.Axis.X.MinorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.X.MinorGridLines.Color = System.Drawing.Color.LightGray;
			this.chartPcrProgram.Axis.X.MinorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.X.MinorGridLines.Visible = false;
			this.chartPcrProgram.Axis.X.TickmarkInterval = 50.0;
			this.chartPcrProgram.Axis.X.TickmarkIntervalType = Infragistics.UltraChart.Shared.Styles.AxisIntervalType.Hours;
			this.chartPcrProgram.Axis.X.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.Smart;
			this.chartPcrProgram.Axis.X.Visible = true;
			this.chartPcrProgram.Axis.X2.Labels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.X2.Labels.FontColor = System.Drawing.Color.Gray;
			this.chartPcrProgram.Axis.X2.Labels.HorizontalAlign = System.Drawing.StringAlignment.Far;
			this.chartPcrProgram.Axis.X2.Labels.ItemFormatString = "<ITEM_LABEL:MM-dd-yy>";
			this.chartPcrProgram.Axis.X2.Labels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.X2.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.VerticalLeftFacing;
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.FontColor = System.Drawing.Color.Gray;
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.FormatString = "";
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.HorizontalAlign = System.Drawing.StringAlignment.Far;
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.VerticalLeftFacing;
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.X2.Labels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.X2.Labels.Visible = false;
			this.chartPcrProgram.Axis.X2.LineThickness = 1;
			this.chartPcrProgram.Axis.X2.MajorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.X2.MajorGridLines.Color = System.Drawing.Color.Gainsboro;
			this.chartPcrProgram.Axis.X2.MajorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.X2.MajorGridLines.Visible = true;
			this.chartPcrProgram.Axis.X2.MinorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.X2.MinorGridLines.Color = System.Drawing.Color.LightGray;
			this.chartPcrProgram.Axis.X2.MinorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.X2.MinorGridLines.Visible = false;
			this.chartPcrProgram.Axis.X2.TickmarkInterval = 50.0;
			this.chartPcrProgram.Axis.X2.TickmarkIntervalType = Infragistics.UltraChart.Shared.Styles.AxisIntervalType.Hours;
			this.chartPcrProgram.Axis.X2.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.Smart;
			this.chartPcrProgram.Axis.X2.Visible = false;
			this.chartPcrProgram.Axis.Y.Extent = 10;
			this.chartPcrProgram.Axis.Y.Labels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Y.Labels.HorizontalAlign = System.Drawing.StringAlignment.Far;
			this.chartPcrProgram.Axis.Y.Labels.ItemFormatString = "<DATA_VALUE:00.##>";
			this.chartPcrProgram.Axis.Y.Labels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Y.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Y.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Y.Labels.SeriesLabels.FormatString = "";
			this.chartPcrProgram.Axis.Y.Labels.SeriesLabels.HorizontalAlign = System.Drawing.StringAlignment.Far;
			this.chartPcrProgram.Axis.Y.Labels.SeriesLabels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Y.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Y.Labels.SeriesLabels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Y.Labels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Y.LineThickness = 1;
			this.chartPcrProgram.Axis.Y.MajorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Y.MajorGridLines.Color = System.Drawing.Color.Gainsboro;
			this.chartPcrProgram.Axis.Y.MajorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Y.MajorGridLines.Visible = true;
			this.chartPcrProgram.Axis.Y.MinorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Y.MinorGridLines.Color = System.Drawing.Color.LightGray;
			this.chartPcrProgram.Axis.Y.MinorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Y.MinorGridLines.Visible = false;
			this.chartPcrProgram.Axis.Y.TickmarkInterval = 1.0;
			this.chartPcrProgram.Axis.Y.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.Smart;
			this.chartPcrProgram.Axis.Y.Visible = true;
			this.chartPcrProgram.Axis.Y2.Labels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Y2.Labels.FontColor = System.Drawing.Color.Gray;
			this.chartPcrProgram.Axis.Y2.Labels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.Y2.Labels.ItemFormatString = "<DATA_VALUE:00.##>";
			this.chartPcrProgram.Axis.Y2.Labels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Y2.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.FontColor = System.Drawing.Color.Gray;
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.FormatString = "";
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Y2.Labels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Y2.Labels.Visible = false;
			this.chartPcrProgram.Axis.Y2.LineThickness = 1;
			this.chartPcrProgram.Axis.Y2.MajorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Y2.MajorGridLines.Color = System.Drawing.Color.Gainsboro;
			this.chartPcrProgram.Axis.Y2.MajorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Y2.MajorGridLines.Visible = true;
			this.chartPcrProgram.Axis.Y2.MinorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Y2.MinorGridLines.Color = System.Drawing.Color.LightGray;
			this.chartPcrProgram.Axis.Y2.MinorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Y2.MinorGridLines.Visible = false;
			this.chartPcrProgram.Axis.Y2.TickmarkInterval = 40000.0;
			this.chartPcrProgram.Axis.Y2.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.Smart;
			this.chartPcrProgram.Axis.Y2.Visible = false;
			this.chartPcrProgram.Axis.Z.Labels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Z.Labels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.Z.Labels.ItemFormatString = "";
			this.chartPcrProgram.Axis.Z.Labels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Z.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Z.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Z.Labels.SeriesLabels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.Z.Labels.SeriesLabels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Z.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Z.Labels.SeriesLabels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Z.Labels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Z.LineThickness = 1;
			this.chartPcrProgram.Axis.Z.MajorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Z.MajorGridLines.Color = System.Drawing.Color.Gainsboro;
			this.chartPcrProgram.Axis.Z.MajorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Z.MajorGridLines.Visible = true;
			this.chartPcrProgram.Axis.Z.MinorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Z.MinorGridLines.Color = System.Drawing.Color.LightGray;
			this.chartPcrProgram.Axis.Z.MinorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Z.MinorGridLines.Visible = false;
			this.chartPcrProgram.Axis.Z.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.Smart;
			this.chartPcrProgram.Axis.Z.Visible = false;
			this.chartPcrProgram.Axis.Z2.Labels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Z2.Labels.FontColor = System.Drawing.Color.Gray;
			this.chartPcrProgram.Axis.Z2.Labels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.Z2.Labels.ItemFormatString = "";
			this.chartPcrProgram.Axis.Z2.Labels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Z2.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Z2.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Z2.Labels.SeriesLabels.FontColor = System.Drawing.Color.Gray;
			this.chartPcrProgram.Axis.Z2.Labels.SeriesLabels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.Z2.Labels.SeriesLabels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Z2.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Z2.Labels.SeriesLabels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Z2.Labels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Z2.Labels.Visible = false;
			this.chartPcrProgram.Axis.Z2.LineThickness = 1;
			this.chartPcrProgram.Axis.Z2.MajorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Z2.MajorGridLines.Color = System.Drawing.Color.Gainsboro;
			this.chartPcrProgram.Axis.Z2.MajorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Z2.MajorGridLines.Visible = true;
			this.chartPcrProgram.Axis.Z2.MinorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Z2.MinorGridLines.Color = System.Drawing.Color.LightGray;
			this.chartPcrProgram.Axis.Z2.MinorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Z2.MinorGridLines.Visible = false;
			this.chartPcrProgram.Axis.Z2.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.Smart;
			this.chartPcrProgram.Axis.Z2.Visible = false;
			resources.ApplyResources(this.chartPcrProgram, "chartPcrProgram");
			this.chartPcrProgram.ColorModel.AlphaLevel = 150;
			this.chartPcrProgram.ColorModel.ColorBegin = System.Drawing.Color.Pink;
			this.chartPcrProgram.ColorModel.ColorEnd = System.Drawing.Color.DarkRed;
			this.chartPcrProgram.ColorModel.ModelStyle = Infragistics.UltraChart.Shared.Styles.ColorModels.CustomLinear;
			this.chartPcrProgram.Effects.Effects.Add(effect);
			this.chartPcrProgram.Name = "chartPcrProgram";
			this.chartPcrProgram.Tooltips.HighlightFillColor = System.Drawing.Color.Black;
			this.chartPcrProgram.Tooltips.HighlightOutlineColor = System.Drawing.Color.DarkGray;
			this.chartPcrProgram.SizeChanged += new System.EventHandler(chartPcrProgram_SizeChanged);
			resources.ApplyResources(this.scrollBar, "scrollBar");
			this.scrollBar.Name = "scrollBar";
			this.scrollBar.NonAutoSize = new System.Drawing.Size(80, 17);
			this.scrollBar.ScrollBarInfo.Enabled = true;
			scrollBarLook.ShowMinMaxButtons = Infragistics.Win.DefaultableBoolean.True;
			this.scrollBar.ScrollBarInfo.ScrollBarLook = scrollBarLook;
			this.scrollBar.ScrollBarInfo.SetFocusOnClick = true;
			this.scrollBar.ShowMinMaxButtons = Infragistics.Win.DefaultableBoolean.True;
			this.scrollBar.ValueChanged += new System.EventHandler(scrollBar_ValueChanged);
			this.grbPreview.Controls.Add(this.chartPcrProgram);
			this.grbPreview.Controls.Add(this.scrollBar);
			resources.ApplyResources(this.grbPreview, "grbPreview");
			this.grbPreview.Name = "grbPreview";
			this.grbPreview.TabStop = false;
			resources.ApplyResources(this.label1, "label1");
			this.label1.Name = "label1";
			resources.ApplyResources(this.numericUpDown1, "numericUpDown1");
			this.numericUpDown1.Name = "numericUpDown1";
			resources.ApplyResources(this.lblXMax, "lblXMax");
			this.lblXMax.Name = "lblXMax";
			resources.ApplyResources(this.lblXMin, "lblXMin");
			this.lblXMin.Name = "lblXMin";
			this.panelButtons.Controls.Add(this.btnPassword);
			this.panelButtons.Controls.Add(this.btnOption);
			this.panelButtons.Controls.Add(this.label2);
			this.panelButtons.Controls.Add(this.btnClose);
			this.panelButtons.Controls.Add(this.btnSave);
			resources.ApplyResources(this.panelButtons, "panelButtons");
			this.panelButtons.ForeColor = System.Drawing.SystemColors.ControlText;
			this.panelButtons.Name = "panelButtons";
			resources.ApplyResources(this.btnPassword, "btnPassword");
			this.btnPassword.Name = "btnPassword";
			this.btnPassword.UseVisualStyleBackColor = true;
			this.btnPassword.Click += new System.EventHandler(btnPassword_Click);
			resources.ApplyResources(this.btnOption, "btnOption");
			this.btnOption.Name = "btnOption";
			this.btnOption.UseVisualStyleBackColor = true;
			this.btnOption.Click += new System.EventHandler(btnOption_Click);
			this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			resources.ApplyResources(this.label2, "label2");
			this.label2.Name = "label2";
			resources.ApplyResources(this.btnClose, "btnClose");
			this.btnClose.Name = "btnClose";
			this.btnClose.UseVisualStyleBackColor = true;
			this.btnClose.Click += new System.EventHandler(btnClose_Click);
			resources.ApplyResources(this.btnSave, "btnSave");
			this.btnSave.Name = "btnSave";
			this.btnSave.UseVisualStyleBackColor = true;
			this.btnSave.Click += new System.EventHandler(btnSave_Click);
			resources.ApplyResources(this, "$this");
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			base.Controls.Add(this.grbPreview);
			base.Controls.Add(this.panel2);
			base.Controls.Add(this.panelButtons);
			base.Controls.Add(this.mnuPcrProgram);
			base.MainMenuStrip = this.mnuPcrProgram;
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "FormProjectEditor";
			base.ShowIcon = false;
			base.ShowInTaskbar = false;
			base.Load += new System.EventHandler(FormProgramEditor_Load);
			base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(FormProgramEditor_FormClosing);
			this.ultraTabPageControl3.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.grdStep1).EndInit();
			this.panelCycle1.ResumeLayout(false);
			this.panelCycle1.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount1).EndInit();
			this.ultraTabPageControl4.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.grdStep2).EndInit();
			this.panelCycle2.ResumeLayout(false);
			this.panelCycle2.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount2).EndInit();
			this.ultraTabPageControl5.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.grdStep3).EndInit();
			this.panelCycle3.ResumeLayout(false);
			this.panelCycle3.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount3).EndInit();
			this.ultraTabPageControl6.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.grdStep4).EndInit();
			this.panelCycle4.ResumeLayout(false);
			this.panelCycle4.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount4).EndInit();
			this.ultraTabPageControl7.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.grdStep5).EndInit();
			this.panelCycle5.ResumeLayout(false);
			this.panelCycle5.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount5).EndInit();
			this.ultraTabPageControl8.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.grdStep6).EndInit();
			this.panelCycle6.ResumeLayout(false);
			this.panelCycle6.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount6).EndInit();
			this.ultraTabPageControl9.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.grdStep7).EndInit();
			this.panelCycle7.ResumeLayout(false);
			this.panelCycle7.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount7).EndInit();
			this.ultraTabPageControl10.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.grdStep8).EndInit();
			this.panelCycle8.ResumeLayout(false);
			this.panelCycle8.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount8).EndInit();
			this.ultraTabPageControl11.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.grdStep9).EndInit();
			this.panelCycle9.ResumeLayout(false);
			this.panelCycle9.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount9).EndInit();
			this.ultraTabPageControl1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.tabAmplification).EndInit();
			this.tabAmplification.ResumeLayout(false);
			this.pnlSetProgramButton.ResumeLayout(false);
			this.ultraTabPageControl2.ResumeLayout(false);
			this.pnlMelting.ResumeLayout(false);
			this.pnlMelting.PerformLayout();
			this.grbMeltingSegment.ResumeLayout(false);
			this.grbMeltingSegment.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.numStopTemperature).EndInit();
			((System.ComponentModel.ISupportInitialize)this.numStartTemperature).EndInit();
			this.grbHRMSegment.ResumeLayout(false);
			this.grbHRMSegment.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.numHRMHoldTime).EndInit();
			((System.ComponentModel.ISupportInitialize)this.numHRMStopTemperature).EndInit();
			((System.ComponentModel.ISupportInitialize)this.numHRMStartTemperature).EndInit();
			this.ultraTabPageControl12.ResumeLayout(false);
			this.ultraTabPageControl14.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.grdCrossTalk).EndInit();
			((System.ComponentModel.ISupportInitialize)this.tabPcrProject).EndInit();
			this.tabPcrProject.ResumeLayout(false);
			this.panel2.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.chartPcrProgram).EndInit();
			((System.ComponentModel.ISupportInitialize)this.scrollBar).EndInit();
			this.grbPreview.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.numericUpDown1).EndInit();
			this.panelButtons.ResumeLayout(false);
			base.ResumeLayout(false);
			base.PerformLayout();
		}

		public FormProjectEditor(IApplication application, IPcrExperimentProject pcrExperimentProject, bool isNewPcrProject, bool isAllowToChangeChannelSettings)
		{
			try
			{
				mApplication = application;
				mPcrExperimentProject = pcrExperimentProject;
				mPcrExperimentProject.SetApplication(mApplication);
				mOriginProjectFileName = mPcrExperimentProject.FileName;
				mPcrProgram = mPcrExperimentProject.PcrProgram;
				mMeltingSegment = mPcrProgram.GetMeltingSegment(0);
				if (mMeltingSegment == null)
				{
					mMeltingSegment = new MeltingSegment(mPcrProgram.AmplificationSegments.Capacity);
					mMeltingSegment.Name = mResourceManager.GetString("MeltingString");
				}
				mHRMSegment = mPcrProgram.GetHRMSegment(0);
				if (mHRMSegment == null)
				{
					mHRMSegment = new HRMSegment(mPcrProgram.AmplificationSegments.Capacity);
				}
				mIsNewPcrProject = isNewPcrProject;
				mIsAllowToChangeChannelSettings = isAllowToChangeChannelSettings;
				mConfigurationService = (IConfigurationService)application.GetService("ConfigurationService");
				mMiscService = (IMiscService)application.GetService("MiscService");
				mPcrProjectService = (IPcrExperimentProjectService)application.GetService("PcrExperimentProjectService");
				mPcrSystemService = (IPcrSystemService)application.GetService("PcrSystemService");
				mPcrLogService = (IPcrLogService)application.GetService("PcrLogService");
				mPcrOptionService = (IPcrOptionService)application.GetService("PcrOptionService");
				mAnalysisService = (IAnalysisService)application.GetService("AnalysisService");
				mRuleEditorService = (IRuleEditorService)application.GetService("RuleEditorService");
				mResourceManager = ResourceManager.CreateFileBasedResourceManager("PcrExperimentProject", application.GetResourceFolder() + GetType().Namespace + "\\", null);
				mPcrProgramConfiguration = mConfigurationService.PcrProgramConfiguration;
				bool isLocked = false;
				InitializeComponent();
				long ticks = DateTime.Now.Ticks;
				InitializeProgramControls();
				long num = DateTime.Now.Ticks - ticks;
				InitializeMenu();
				RefreshProgramControlDisplay();
				long num2 = DateTime.Now.Ticks - num;
				InitializeStepGridColumn();
				long num3 = DateTime.Now.Ticks - num2;
				InitializeEditorTitle();
				IntializeAnalysisOptionTabControl();
				long num4 = DateTime.Now.Ticks - num3;
				InitializeCrossTalkGrid(grdCrossTalk);
				long tick = DateTime.Now.Ticks;
				chkMeltingSegment.CheckedChanged += chkMeltingSegment_CheckedChanged;
				if (!pcrExperimentProject.IsPasswordMatch)
				{
					btnPassword.Enabled = false;
					if (pcrExperimentProject.ZonePasswordStatus[0])
					{
						SetHoldingCycleTabEnabled(false);
						SetMeltingTabEnabled(false);
					}
					if (pcrExperimentProject.ZonePasswordStatus[1])
					{
						SetAnalysisOptionTabEnabled(false);
					}
					if (pcrExperimentProject.ZonePasswordStatus[2])
					{
						isLocked = true;
					}
					if (pcrExperimentProject.ZonePasswordStatus[3])
					{
						SetCrossTalkTabEnabled(false);
					}
				}
				InitializeProjectRule(isLocked);
				mIsSaved = !mIsNewPcrProject;
				mIsRefreshSavedFile = false;
				base.DialogResult = DialogResult.Cancel;
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		private void SetHoldingCycleTabEnabled(bool isEnabled)
		{
			foreach (UltraTab tab in tabAmplification.Tabs)
			{
				tab.Enabled = isEnabled;
			}
			pnlSetProgramButton.Enabled = isEnabled;
		}

		private void SetMeltingTabEnabled(bool isEnabled)
		{
			pnlMelting.Enabled = isEnabled;
		}

		private void SetAnalysisOptionTabEnabled(bool isEnabled)
		{
			UltraTabControl ultraTabControl = pnlAnalysisOption.Controls[0] as UltraTabControl;
			if (ultraTabControl != null)
			{
				UltraTabControl ultraTabControl2 = ultraTabControl.Tabs[0].TabPage.Controls["Options Tab Control"] as UltraTabControl;
				Control control = ultraTabControl2.Tabs[mPcrExperimentProject.Name + " Basic Option"].TabPage.Controls[mPcrExperimentProject.Name + " Basic Option Grid"];
				Grid val = (Grid)(object)((control is Grid) ? control : null);
				val.Enabled = isEnabled;
				Control control2 = ultraTabControl2.Tabs[mPcrExperimentProject.Name + " Melting Option"].TabPage.Controls[mPcrExperimentProject.Name + " Melting Option Grid"];
				val = (Grid)(object)((control2 is Grid) ? control2 : null);
				val.Enabled = isEnabled;
			}
		}

		private void SetRuleTabEnabled(bool isEnabled)
		{
			UltraTabControl ultraTabControl = tabPcrProject.Tabs["Rule"].TabPage.Controls[0] as UltraTabControl;
			if (ultraTabControl != null)
			{
				ultraTabControl.Tabs["Rule"].Enabled = isEnabled;
				ultraTabControl.Tabs["AdvancedRule"].Enabled = isEnabled;
			}
		}

		private void SetCrossTalkTabEnabled(bool isEnabled)
		{
			grdCrossTalk.Enabled = isEnabled;
		}

		protected virtual void InitializeProjectRule(bool isLocked)
		{
			((ISupportInitialize)tabPcrProject).BeginInit();
			tabPcrProject.SuspendLayout();
			UltraTabControl ultraTabControl = mPcrProjectService.GenerateRuleTabControl(isLocked);
			ultraTabControl.Tag = mPcrExperimentProject;
			tabPcrProject.Tabs["Rule"].TabPage.Controls.Add(ultraTabControl);
			tabPcrProject.ResumeLayout();
			((ISupportInitialize)tabPcrProject).EndInit();
			UltraGrid ultraGrid = ultraTabControl.Tabs["Rule"].TabPage.Controls[0] as UltraGrid;
			mPcrProjectService.RefreshRuleGrid(ultraGrid, mPcrExperimentProject);
			Panel panel = ultraTabControl.Tabs["AdvancedRule"].TabPage.Controls["advancedRulePanel"] as Panel;
			UltraGrid ultraGrid2 = panel.Controls[0].Controls[0].Controls[0] as UltraGrid;
			mRuleEditorService.RefreshRuleGrid(ultraGrid2, mPcrExperimentProject);
			if (mPcrExperimentProject.IsUseAdvancedRule)
			{
				ultraTabControl.SelectedTab = ultraTabControl.Tabs["AdvancedRule"];
			}
			ultraGrid.CellChange += grdRule_CellChange;
			ultraGrid2.CellChange += grdAdvancedRule_CellChange;
		}

		public void OpenPcrProject(IPcrExperimentProject pcrExperimentProject)
		{
			mPcrExperimentProject = pcrExperimentProject;
			mPcrExperimentProject.SetApplication(mApplication);
			mIsNewPcrProject = false;
			InitializeEditorTitle();
		}

		public bool CheckValueRange(object value)
		{
			return mCheckNameDelegate(value);
		}

		protected void InitializeMenu()
		{
			mMenuFile = new ToolStripMenuItem();
			mMenuFile.Text = mResourceManager.GetString("MenuFile");
			mMenuFile.Name = "File";
			ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem();
			toolStripMenuItem.Name = "NewProjectFile";
			toolStripMenuItem.Text = mResourceManager.GetString("MenuNew");
			toolStripMenuItem.ShortcutKeys = Keys.N | Keys.Control;
			toolStripMenuItem.Visible = false;
			toolStripMenuItem.Click += mnuNewProjectFile_Click;
			mMenuFile.DropDownItems.Add(toolStripMenuItem);
			ToolStripMenuItem toolStripMenuItem2 = new ToolStripMenuItem();
			toolStripMenuItem2.Name = "OpenProjectFile";
			toolStripMenuItem2.Text = mResourceManager.GetString("MenuOpen");
			toolStripMenuItem2.Visible = false;
			toolStripMenuItem2.ShortcutKeys = Keys.O | Keys.Control;
			toolStripMenuItem2.Click += mnuOpenProjectFile_Click;
			mMenuFile.DropDownItems.Add(toolStripMenuItem2);
			ToolStripMenuItem toolStripMenuItem3 = new ToolStripMenuItem();
			toolStripMenuItem3.Name = "SaveProjectFile";
			toolStripMenuItem3.Text = mResourceManager.GetString("MenuSave");
			toolStripMenuItem3.ShortcutKeys = Keys.S | Keys.Control;
			toolStripMenuItem3.Click += mnuSaveProjectFile_Click;
			mMenuFile.DropDownItems.Add(toolStripMenuItem3);
			ToolStripMenuItem toolStripMenuItem4 = new ToolStripMenuItem();
			toolStripMenuItem4.Name = "SaveAsProjectFile";
			toolStripMenuItem4.Text = mResourceManager.GetString("MenuSaveas");
			toolStripMenuItem4.ShortcutKeys = Keys.A | Keys.Control;
			toolStripMenuItem4.Click += mnuSaveAsProjectFile_Click;
			mMenuFile.DropDownItems.Add(toolStripMenuItem4);
			ToolStripMenuItem toolStripMenuItem5 = new ToolStripMenuItem();
			toolStripMenuItem5.Name = "Import";
			toolStripMenuItem5.Text = mResourceManager.GetString("MenuImport");
			toolStripMenuItem5.ShortcutKeys = Keys.I | Keys.Control;
			toolStripMenuItem5.Click += mnuImport_Click;
			mMenuFile.DropDownItems.Add(toolStripMenuItem5);
			ToolStripMenuItem toolStripMenuItem6 = new ToolStripMenuItem();
			toolStripMenuItem6.Name = "Close";
			toolStripMenuItem6.Text = mResourceManager.GetString("MenuClose");
			toolStripMenuItem6.Click += mnuClose_Click;
			mMenuFile.DropDownItems.Add(toolStripMenuItem6);
			mnuPcrProgram.Items.Add(mMenuFile);
			mMenuOption = new ToolStripMenuItem();
			mMenuOption.Text = mResourceManager.GetString("MenuOption");
			mMenuOption.Name = "Option";
			ToolStripMenuItem toolStripMenuItem7 = new ToolStripMenuItem();
			toolStripMenuItem7.Name = "ProjectOption";
			toolStripMenuItem7.Text = mResourceManager.GetString("MenuProjectOption");
			toolStripMenuItem7.Click += mnuProjectOption_Click;
			mMenuOption.DropDownItems.Add(toolStripMenuItem7);
			ToolStripMenuItem toolStripMenuItem8 = new ToolStripMenuItem();
			toolStripMenuItem8.Name = "AnalysisParameters";
			toolStripMenuItem8.Text = mResourceManager.GetString("MenuAnalysisParameters");
			toolStripMenuItem8.Click += mnuAnalysisOption_Click;
			mMenuOption.DropDownItems.Add(toolStripMenuItem8);
			ToolStripMenuItem toolStripMenuItem9 = new ToolStripMenuItem();
			toolStripMenuItem9.Name = "CrossTalk";
			toolStripMenuItem9.Text = mResourceManager.GetString("MenuCrossTalk");
			toolStripMenuItem9.Click += mnuCrossTalkOption_Click;
			mMenuOption.DropDownItems.Add(toolStripMenuItem9);
			mnuPcrProgram.Items.Add(mMenuOption);
		}

		protected void InitializeEditorTitle()
		{
			if (!mIsNewPcrProject)
			{
				Text = mPcrExperimentProject.FileName;
			}
			mIsSaved = false;
		}

		protected virtual UltraTabControl IntializeAnalysisOptionTabControl()
		{
			//IL_00bb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c5: Expected O, but got Unknown
			//IL_0139: Unknown result type (might be due to invalid IL or missing references)
			//IL_0143: Expected O, but got Unknown
			UltraTabControl ultraTabControl = mAnalysisService.GenerateAnalysisOptionTabControl(new List<IPcrExperimentProject> { mPcrExperimentProject }, false, false);
			pnlAnalysisOption.Controls.Add(ultraTabControl);
			ultraTabControl.BringToFront();
			pnlAnalysisOption.SendToBack();
			UltraTabControl ultraTabControl2 = ultraTabControl.Tabs[0].TabPage.Controls["Options Tab Control"] as UltraTabControl;
			Control control = ultraTabControl2.Tabs[mPcrExperimentProject.Name + " Basic Option"].TabPage.Controls[mPcrExperimentProject.Name + " Basic Option Grid"];
			Grid val = (Grid)(object)((control is Grid) ? control : null);
			val.CellChange += new CellChangeEventHandler(analysisOptinGrid_CellChange);
			if (ultraTabControl2.Tabs.Exists(mPcrExperimentProject.Name + " Melting Option"))
			{
				Control control2 = ultraTabControl2.Tabs[mPcrExperimentProject.Name + " Melting Option"].TabPage.Controls[mPcrExperimentProject.Name + " Melting Option Grid"];
				val = (Grid)(object)((control2 is Grid) ? control2 : null);
				val.CellChange += new CellChangeEventHandler(analysisOptinGrid_CellChange);
			}
			return ultraTabControl;
		}

		protected void FormProgramEditor_Load(object sender, EventArgs e)
		{
			tabAmplification.SelectedTab = tabAmplification.Tabs[0];
			mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProject.PcrProgram, true, scrollBar, false, true);
			tabAmplification.SelectedTabChanging += tabAmplification_SelectedTabChanging;
		}

		protected void FormProgramEditor_FormClosing(object sender, FormClosingEventArgs e)
		{
			try
			{
				grdStep1.UpdateData();
			}
			catch (Exception ex)
			{
				if (ex.Message.Equals("Value in the editor is not valid."))
				{
					MessageBox.Show(mResourceManager.GetString("ValueNotValidString"), mResourceManager.GetString("ErrorString"));
				}
				else
				{
					mPcrLogService.ShowExceptionDialogBox(ex);
				}
				e.Cancel = true;
				return;
			}
			if (mIsRefreshSavedFile)
			{
				base.DialogResult = DialogResult.OK;
			}
			if (!mIsSaved)
			{
				switch (MessageBox.Show(mResourceManager.GetString("ConfirmToSaveProgram"), mResourceManager.GetString("HintString"), MessageBoxButtons.YesNoCancel))
				{
				case DialogResult.Yes:
					btnSave.PerformClick();
					e.Cancel = !mIsSaved;
					base.DialogResult = DialogResult.OK;
					break;
				case DialogResult.Cancel:
					e.Cancel = true;
					base.DialogResult = DialogResult.Cancel;
					break;
				}
			}
		}

		protected void analysisOptinGrid_CellChange(object Sender, CellChangeEventArgs e)
		{
			mIsSaved = false;
		}

		private void grdCrossTalk_CellChange(object Sender, CellEventArgs e)
		{
			mIsSaved = false;
		}

		private void grdRule_CellChange(object Sender, CellEventArgs e)
		{
			mIsSaved = false;
		}

		private void grdAdvancedRule_CellChange(object Sender, CellEventArgs e)
		{
			mIsSaved = false;
		}

		protected void mnuProjectOption_Click(object sender, EventArgs e)
		{
		}

		protected void mnuChannelOption_Click(object sender, EventArgs e)
		{
			try
			{
				mPcrOptionService.LoadChannelOptionForm(mPcrExperimentProject.IsChannelUsed, mPcrExperimentProject.ChannelConfigurations);
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuAnalysisOption_Click(object sender, EventArgs e)
		{
			try
			{
				mPcrProjectService.LoadProjectAnalysisParametersOption(new List<IPcrExperimentProject> { mPcrExperimentProject }, mPcrExperimentProject.SystemType, false);
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuTemperatureControlOption_Click(object sender, EventArgs e)
		{
		}

		protected void mnuCrossTalkOption_Click(object sender, EventArgs e)
		{
			try
			{
				mIsSaved = false;
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuNewProjectFile_Click(object sender, EventArgs e)
		{
			try
			{
				if (CheckCurrentProgramStatus())
				{
					FormProjectOption formProjectOption = new FormProjectOption(mApplication, mConfigurationService.DefaultProjectType);
					if (formProjectOption.ShowDialog() == DialogResult.OK)
					{
						mPcrExperimentProject = formProjectOption.ExperimentProject;
						RefreshProgramControlDisplay();
						InitializeEditorTitle();
						mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProject.PcrProgram, true, scrollBar, false, false);
					}
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuOpenProjectFile_Click(object sender, EventArgs e)
		{
			try
			{
				mPcrExperimentProject = mPcrProjectService.OpenPcrExperimentProject();
				mMeltingSegment = mPcrExperimentProject.PcrProgram.GetMeltingSegment(0);
				RefreshProgramControlDisplay();
				InitializeEditorTitle();
				IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
				pcrProgram.GetExperimentTotalTime(true);
				mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, true, scrollBar, false, false);
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuSaveProjectFile_Click(object sender, EventArgs e)
		{
		}

		protected virtual bool SaveProjectRules()
		{
			UltraTabControl ultraTabControl = tabPcrProject.Tabs["Rule"].TabPage.Controls[0] as UltraTabControl;
			UltraGrid ultraGrid = ultraTabControl.Tabs["Rule"].TabPage.Controls[0] as UltraGrid;
			CheckBox checkBox = ultraTabControl.Tabs["Rule"].TabPage.Controls[1].Controls[0] as CheckBox;
			if (ultraGrid == null)
			{
				return false;
			}
			Panel panel = ultraTabControl.Tabs["AdvancedRule"].TabPage.Controls["advancedRulePanel"] as Panel;
			if (panel == null)
			{
				return false;
			}
			UltraGrid ultraGrid2 = panel.Controls[0].Controls[0].Controls[0] as UltraGrid;
			if (ultraGrid2 == null)
			{
				return false;
			}
			if (checkBox.Checked)
			{
				if (!mPcrProjectService.SaveRuleGrid(ultraGrid, mPcrExperimentProject))
				{
					return false;
				}
			}
			else if (!mRuleEditorService.SaveRuleGrid(ultraGrid2, mPcrExperimentProject))
			{
				return false;
			}
			return true;
		}

		protected virtual bool SaveProjectCrossTalk()
		{
			foreach (UltraGridRow row in grdCrossTalk.Rows)
			{
				foreach (UltraGridCell cell in row.Cells)
				{
					mPcrExperimentProject.CrossTalkValue[row.Index, cell.Column.Index] = (double)cell.Value;
				}
			}
			return true;
		}

		protected virtual bool SaveAnalysisOptions()
		{
			UltraTabControl ultraTabControl = pnlAnalysisOption.Controls[0] as UltraTabControl;
			if (ultraTabControl != null)
			{
				string value = mAnalysisService.SaveAnalysisOptionTabControl(ultraTabControl);
				if (!string.IsNullOrEmpty(value))
				{
					tabPcrProject.SelectedTab = tabPcrProject.Tabs["Analysis Option"];
					tabPcrProject.ActiveTab = tabPcrProject.Tabs["Analysis Option"];
					MessageBox.Show(value, mResourceManager.GetString("ErrorString"));
					return false;
				}
				return true;
			}
			return false;
		}

		protected void mnuSaveAsProjectFile_Click(object sender, EventArgs e)
		{
			try
			{
				if (!SaveAnalysisOptions() || !SaveProjectRules())
				{
					return;
				}
				for (int i = 0; i < tabAmplification.Tabs.Count; i++)
				{
					if (tabAmplification.Tabs[i].Visible && !CheckAmplificationSegment(i))
					{
						return;
					}
				}
				if (!SaveMeltingSegment())
				{
					return;
				}
				if (mIsNewPcrProject)
				{
					string fileName = mPcrSystemService.GetActiveFormProjectFolder(null) + mResourceManager.GetString("ExperimentProjectString") + " " + mMiscService.TimeToFileFormatString(DateTime.Now, "_") + ".prj";
					fileName = mPcrProjectService.SaveAsExperimentProject(mPcrExperimentProject, fileName);
					if (fileName != null)
					{
						mIsSaved = true;
						mIsNewPcrProject = false;
						Text = fileName;
					}
				}
				else
				{
					if (mIsSegmentPositionChanged)
					{
						mPcrExperimentProject.PcrProgram.AmplificationSegments = GenerateAmplificationSegements();
					}
					mPcrProjectService.SaveAsExperimentProject(mPcrExperimentProject, mPcrSystemService.GetActiveFormProjectFolder(null));
					mIsSaved = true;
				}
				InitializeEditorTitle();
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuImport_Click(object sender, EventArgs e)
		{
		}

		protected void mnuClose_Click(object sender, EventArgs e)
		{
			Close();
		}

		private void btnClose_Click(object sender, EventArgs e)
		{
			Close();
		}

		private void btnSave_Click(object sender, EventArgs e)
		{
			try
			{
				SaveProject();
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected virtual void SaveProject()
		{
			if (mIsNewPcrProject)
			{
				mMenuFile.DropDownItems["SaveAsProjectFile"].PerformClick();
			}
			else
			{
				if (!SaveMeltingSegment() || !SaveAnalysisOptions())
				{
					return;
				}
				if (!SaveProjectRules())
				{
					tabPcrProject.SelectedTab = tabPcrProject.Tabs["Rule"];
					tabPcrProject.ActiveTab = tabPcrProject.Tabs["Rule"];
					return;
				}
				if (!SaveProjectCrossTalk())
				{
					tabPcrProject.SelectedTab = tabPcrProject.Tabs["Cross Talk"];
					tabPcrProject.ActiveTab = tabPcrProject.Tabs["Cross Talk"];
					return;
				}
				for (int i = 0; i < tabAmplification.Tabs.Count; i++)
				{
					if (tabAmplification.Tabs[i].Visible && !CheckAmplificationSegment(i))
					{
						return;
					}
				}
				if (mIsSegmentPositionChanged)
				{
					mPcrExperimentProject.PcrProgram.AmplificationSegments = GenerateAmplificationSegements();
				}
				if (CheckProgramFluorescenceDetection())
				{
					if (!mOriginProjectFileName.Equals(mPcrExperimentProject.FileName) && File.Exists(mOriginProjectFileName))
					{
						File.Delete(mOriginProjectFileName);
					}
					mPcrProjectService.SaveExperimentProject(mPcrExperimentProject);
					mOriginProjectFileName = mPcrExperimentProject.FileName;
					mIsNewPcrProject = false;
					mIsSaved = true;
					mIsRefreshSavedFile = true;
				}
			}
		}

		protected virtual void RefreshAnalysisTabControl(UltraTabControl analysisTabControl, string oldTabName)
		{
			if (analysisTabControl != null)
			{
				analysisTabControl.Tabs[oldTabName + " Basic Option"].Key = mPcrExperimentProject.Name + " Basic Option";
				mAnalysisService.RefreshBasicAnalysisOptionTab(analysisTabControl, mPcrExperimentProject);
				analysisTabControl.Tabs[oldTabName + " Melting Option"].Key = mPcrExperimentProject.Name + " Melting Option";
				mAnalysisService.RefreshMeltingAnalysisOptionTab(analysisTabControl, mPcrExperimentProject);
			}
		}

		private void btnOption_Click(object sender, EventArgs e)
		{
			try
			{
				FormEditProjectOption formEditProjectOption = new FormEditProjectOption(mApplication, mPcrExperimentProject, mIsAllowToChangeChannelSettings);
				if (formEditProjectOption.ShowDialog() != DialogResult.OK)
				{
					return;
				}
				mPcrExperimentProject = formEditProjectOption.ExperimentProject;
				UltraTabControl ultraTabControl = pnlAnalysisOption.Controls["Project Options Tab Control"] as UltraTabControl;
				InitializeEditorTitle();
				string key = ultraTabControl.Tabs[0].Key;
				ultraTabControl.Tabs[0].Key = mPcrExperimentProject.Name;
				ultraTabControl.Tabs[mPcrExperimentProject.Name].TabPage.Controls[0].Name = mPcrExperimentProject.Name;
				UltraTabControl analysisTabControl = ultraTabControl.Tabs[mPcrExperimentProject.Name].TabPage.Controls[0] as UltraTabControl;
				RefreshAnalysisTabControl(analysisTabControl, key);
				if (tabPcrProject.Tabs["Rule"].Visible)
				{
					try
					{
						ultraTabControl = tabPcrProject.Tabs["Rule"].TabPage.Controls[0] as UltraTabControl;
					}
					catch (Exception)
					{
						ultraTabControl = null;
					}
					if (ultraTabControl != null)
					{
						UltraGrid grdRule = ultraTabControl.Tabs["Rule"].TabPage.Controls[0] as UltraGrid;
						mPcrProjectService.RefreshRuleGrid(grdRule, mPcrExperimentProject);
						Panel panel = ultraTabControl.Tabs["AdvancedRule"].TabPage.Controls["advancedRulePanel"] as Panel;
						UltraGrid multraGridRule = panel.Controls[0].Controls[0].Controls[0] as UltraGrid;
						mRuleEditorService.RefreshRuleGrid(multraGridRule, mPcrExperimentProject);
					}
				}
				if (!mPcrProjectService.GenerateCrossTalkGrid(mPcrExperimentProject, grdCrossTalk, true, false))
				{
					tabPcrProject.Tabs["Cross Talk"].Enabled = false;
				}
				else
				{
					tabPcrProject.Tabs["Cross Talk"].Enabled = true;
				}
				mIsSaved = false;
			}
			catch (Exception ex2)
			{
				mPcrLogService.ShowExceptionDialogBox(ex2);
			}
		}

		protected virtual void tabPcrProject_SelectedTabChanged(object sender, SelectedTabChangedEventArgs e)
		{
			try
			{
				if (e.Tab.Key.Equals("Analysis Option"))
				{
					UltraTabControl ultraTabControl = e.Tab.TabPage.Controls[0].Controls[0] as UltraTabControl;
					if (ultraTabControl != null)
					{
						UltraTabControl ultraTabControl2 = ultraTabControl.Tabs[mPcrExperimentProject.Name].TabPage.Controls[0] as UltraTabControl;
						if (ultraTabControl2 != null)
						{
							mAnalysisService.RefreshMeltingAnalysisOptionTab(ultraTabControl2, mPcrExperimentProject);
						}
					}
				}
				else if (e.PreviousSelectedTab != null && e.PreviousSelectedTab.Key.Equals("Analysis Option"))
				{
					UltraTabControl ultraTabControl3 = pnlAnalysisOption.Controls[0] as UltraTabControl;
					if (ultraTabControl3 != null)
					{
						mAnalysisService.SaveAnalysisOptionTabControl(ultraTabControl3);
					}
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		private void btnPassword_Click(object sender, EventArgs e)
		{
			try
			{
				FormProjectEncryption formProjectEncryption = new FormProjectEncryption(mPcrExperimentProject, mApplication);
				formProjectEncryption.ShowDialog();
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		private void lblHRMHoldTime_Click(object sender, EventArgs e)
		{
		}

		private void chartPcrProgram_SizeChanged(object sender, EventArgs e)
		{
			try
			{
				mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProject.PcrProgram, false, scrollBar, false, true);
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void InitializeProgramControls()
		{
			mStepGrids = new UltraGrid[tabAmplification.Tabs.Count];
			mCycleValues = new NumericUpDown[mStepGrids.Length];
			for (int i = 0; i < mStepGrids.Length; i++)
			{
				string text = (i + 1).ToString();
				mStepGrids[i] = (UltraGrid)tabAmplification.Tabs[i].TabPage.Controls["grdStep" + text];
				mStepGrids[i].MouseClick += StepGrid_MouseClick;
				InitializeStepGridLayout(mStepGrids[i], i);
				Panel panel = (Panel)tabAmplification.Tabs[i].TabPage.Controls["panelCycle" + text];
				if (panel != null)
				{
					mCycleValues[i] = (NumericUpDown)panel.Controls["numCycleCount" + text];
					Label label = (Label)panel.Controls["lblCycleCount" + text];
					label.Text = mResourceManager.GetString("CyclesString");
					mCycleValues[i].Maximum = 99m;
					mCycleValues[i].Minimum = 1m;
					mCycleValues[i].ValueChanged += CycleValue_ValueChanged;
				}
			}
			InitializeSegmentContextMenu();
			InitializeStepContextMenu();
			InitializeMeltingSegment();
			InitializeHRMSegment();
		}

		private void InitializeCrossTalkGrid(UltraGrid grdCrossTalk)
		{
			if (!mPcrProjectService.GenerateCrossTalkGrid(mPcrExperimentProject, grdCrossTalk, true, false))
			{
				tabPcrProject.Tabs["Cross Talk"].Enabled = false;
			}
			grdCrossTalk.CellChange += grdCrossTalk_CellChange;
		}

		protected void RefreshProgramControlDisplay()
		{
			for (int i = 0; i < mStepGrids.Length; i++)
			{
				IAmplificationSegment amplificationSegment = mPcrExperimentProject.PcrProgram.GetAmplificationSegment(i);
				RefreshAmplificationSegmentDisplay(amplificationSegment, i);
			}
			RefreshMeltingSegmentDisplay();
			tabAmplification.SelectedTab = tabAmplification.Tabs[0];
		}

		protected void InitializeStepGridLayout(UltraGrid grdStep, int tabIndex)
		{
			grdStep.DisplayLayout.ViewStyleBand = ViewStyleBand.Horizontal;
			grdStep.DisplayLayout.CaptionVisible = DefaultableBoolean.False;
			grdStep.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn;
			grdStep.DisplayLayout.Scrollbars = Scrollbars.Automatic;
			grdStep.DisplayLayout.Override.HeaderAppearance.TextHAlign = HAlign.Center;
			grdStep.DisplayLayout.Override.HeaderAppearance.TextVAlign = VAlign.Middle;
			grdStep.DisplayLayout.Override.CellClickAction = CellClickAction.EditAndSelectText;
			grdStep.DisplayLayout.Override.RowSelectors = DefaultableBoolean.True;
			grdStep.DisplayLayout.Override.RowSelectorAppearance.TextHAlign = HAlign.Center;
			grdStep.DisplayLayout.Override.RowSelectorAppearance.TextVAlign = VAlign.Middle;
			grdStep.DisplayLayout.Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.SeparateElement;
			grdStep.DisplayLayout.Override.RowSelectorNumberStyle = RowSelectorNumberStyle.RowIndex;
			grdStep.DisplayLayout.Override.RowSelectorStyle = HeaderStyle.WindowsVista;
			grdStep.DisplayLayout.Override.AllowAddNew = AllowAddNew.No;
			grdStep.DisplayLayout.Override.RowSelectorWidth = 80;
			grdStep.DisplayLayout.Override.ExpansionIndicator = ShowExpansionIndicator.Never;
			grdStep.DisplayLayout.Override.ColumnAutoSizeMode = ColumnAutoSizeMode.AllRowsInBand;
			grdStep.DisplayLayout.Override.RowSizing = RowSizing.Fixed;
			grdStep.DisplayLayout.Override.AllowColSizing = AllowColSizing.None;
			grdStep.DisplayLayout.Override.AllowColMoving = AllowColMoving.NotAllowed;
			grdStep.DisplayLayout.Override.HeaderClickAction = HeaderClickAction.Select;
			grdStep.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.True;
			grdStep.UpdateMode = UpdateMode.OnCellChangeOrLostFocus;
			grdStep.DisplayLayout.Bands[0].Override.CellAppearance.TextHAlign = HAlign.Center;
			grdStep.DisplayLayout.Bands[0].Override.CellAppearance.TextVAlign = VAlign.Middle;
			grdStep.CreationFilter = new ShowLabelTextInRowSelect();
			grdStep.DisplayLayout.Override.WrapHeaderText = DefaultableBoolean.True;
			grdStep.CellChange += grdStep_CellChange;
			grdStep.BeforeCellUpdate += grdStep_BeforeCellUpdate;
			grdStep.BeforeExitEditMode += grdStep_BeforeExitEditMode;
			grdStep.CellDataError += grdStep_CellDataError;
			grdStep.AfterCellUpdate += grdStep_AfterCellUpdate;
			grdStep.MouseUp += grdStep_MouseUp;
		}

		private void InitializeStepGridColumn()
		{
			UltraGrid[] array = mStepGrids;
			foreach (UltraGrid ultraGrid in array)
			{
				int num = 0;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Header.Caption = mResourceManager.GetString("StepString");
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Hidden = true;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].CellClickAction = CellClickAction.CellSelect;
				num++;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Header.Caption = mResourceManager.GetString("TemperatureString");
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Width = 80;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Double;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskInput = "{double:2.1}";
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskDataMode = MaskMode.Raw;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskDisplayMode = MaskMode.Raw;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].PromptChar = '0';
				ultraGrid.DisplayLayout.Bands[0].Columns[num].PadChar = '0';
				ultraGrid.DisplayLayout.Bands[0].Columns[num].DefaultCellValue = 10.0;
				num++;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Header.Caption = mResourceManager.GetString("HoldString");
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Width = 60;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskInput = "99:99";
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskDataMode = MaskMode.IncludeBoth;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskDisplayMode = MaskMode.IncludeBoth;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].PromptChar = '0';
				ultraGrid.DisplayLayout.Bands[0].Columns[num].DefaultCellValue = "00:00";
				num++;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Header.Caption = mResourceManager.GetString("AcquisitionString");
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Width = 90;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].DefaultCellValue = false;
				num++;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Header.Caption = mResourceManager.GetString("AdvancedString");
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Width = 80;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].DefaultCellValue = false;
				ValueList valueList = new ValueList();
				valueList.ValueListItems.Add(true, mResourceManager.GetString("IncreaseString"));
				valueList.ValueListItems.Add(false, mResourceManager.GetString("DecreaseString"));
				num++;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Header.Caption = mResourceManager.GetString("TemperatureVariationString");
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Width = 80;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].ValueList = valueList;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].DefaultCellValue = valueList.ValueListItems[0].DataValue;
				num++;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Header.Caption = mResourceManager.GetString("VariationValueString") + "(℃)";
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Width = 70;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Double;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskInput = "nn.n";
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskDataMode = MaskMode.IncludeBoth;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskDisplayMode = MaskMode.IncludeBoth;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].PromptChar = '0';
				ultraGrid.DisplayLayout.Bands[0].Columns[num].PadChar = '0';
				ultraGrid.DisplayLayout.Bands[0].Columns[num].DefaultCellValue = 0.0;
				num++;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Header.Caption = mResourceManager.GetString("TimeVariationString");
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Width = 75;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].ValueList = valueList;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].DefaultCellValue = valueList.ValueListItems[0].DataValue;
				num++;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Header.Caption = mResourceManager.GetString("VariationValueString") + "(mm:ss)";
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Width = 75;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskInput = "99:99";
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskDataMode = MaskMode.IncludeBoth;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskDisplayMode = MaskMode.IncludeBoth;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].PromptChar = '0';
				ultraGrid.DisplayLayout.Bands[0].Columns[num].DefaultCellValue = "00:00";
				num++;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Header.Caption = mResourceManager.GetString("RampString");
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Width = 100;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Double;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskInput = "n.n";
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskDataMode = MaskMode.IncludeBoth;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].MaskDisplayMode = MaskMode.IncludeBoth;
				ultraGrid.DisplayLayout.Bands[0].Columns[num].PromptChar = '0';
				ultraGrid.DisplayLayout.Bands[0].Columns[num].PadChar = '0';
				ultraGrid.DisplayLayout.Bands[0].Columns[num].DefaultCellValue = 0.0;
			}
			mStepGridColumnIsInitialized = true;
		}

		protected void InitializeSegmentContextMenu()
		{
			mSegmentContextMenu = new ContextMenuStrip();
			ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem();
			ToolStripMenuItem toolStripMenuItem2 = new ToolStripMenuItem();
			ToolStripMenuItem toolStripMenuItem3 = new ToolStripMenuItem();
			ToolStripMenuItem toolStripMenuItem4 = new ToolStripMenuItem();
			ToolStripMenuItem toolStripMenuItem5 = new ToolStripMenuItem();
			ToolStripMenuItem toolStripMenuItem6 = new ToolStripMenuItem();
			toolStripMenuItem.Text = mResourceManager.GetString("RenameString");
			toolStripMenuItem.Name = "RenameSegment";
			toolStripMenuItem.Click += mnuSegmentRename_Click;
			mSegmentContextMenu.Items.Add(toolStripMenuItem);
			mSegmentContextMenu.Items.Add(new ToolStripSeparator());
			toolStripMenuItem2.Text = mResourceManager.GetString("AddSegmentString");
			toolStripMenuItem2.Name = "AddSegment";
			toolStripMenuItem2.Click += mnuAddSegment_Click;
			mSegmentContextMenu.Items.Add(toolStripMenuItem2);
			toolStripMenuItem3.Text = mResourceManager.GetString("InsertSegmentString");
			toolStripMenuItem3.Name = "InsertSegment";
			toolStripMenuItem3.Click += mnuInsertSegment_Click;
			toolStripMenuItem3.Visible = false;
			mSegmentContextMenu.Items.Add(toolStripMenuItem3);
			toolStripMenuItem4.Text = mResourceManager.GetString("DeleteSegmentString");
			toolStripMenuItem4.Name = "DeleteSegment";
			toolStripMenuItem4.Click += mnuDeleteSegment_Click;
			mSegmentContextMenu.Items.Add(toolStripMenuItem4);
			mSegmentContextMenu.Items.Add(new ToolStripSeparator());
			toolStripMenuItem5.Text = mResourceManager.GetString("MoveForwardString");
			toolStripMenuItem5.Name = "SegmentMoveForward";
			toolStripMenuItem5.Click += mnuSegmentMoveForward_Click;
			mSegmentContextMenu.Items.Add(toolStripMenuItem5);
			toolStripMenuItem5.Visible = false;
			toolStripMenuItem6.Text = mResourceManager.GetString("MoveBackwardString");
			toolStripMenuItem6.Name = "SegmentMoveBackward";
			toolStripMenuItem6.Click += mnuSegmentMoveBackward_Click;
			mSegmentContextMenu.Items.Add(toolStripMenuItem6);
			toolStripMenuItem6.Visible = false;
		}

		protected void InitializeStepContextMenu()
		{
			mStepContextMenu = new ContextMenuStrip();
			ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem();
			ToolStripMenuItem toolStripMenuItem2 = new ToolStripMenuItem();
			ToolStripMenuItem toolStripMenuItem3 = new ToolStripMenuItem();
			ToolStripMenuItem toolStripMenuItem4 = new ToolStripMenuItem();
			ToolStripMenuItem toolStripMenuItem5 = new ToolStripMenuItem();
			ToolStripMenuItem toolStripMenuItem6 = new ToolStripMenuItem();
			toolStripMenuItem.Text = mResourceManager.GetString("RenameString");
			toolStripMenuItem.Name = "RenameSegment";
			toolStripMenuItem.Click += mnuStepRename_Click;
			mStepContextMenu.Items.Add(toolStripMenuItem);
			mStepContextMenu.Items.Add(new ToolStripSeparator());
			toolStripMenuItem2.Text = mResourceManager.GetString("AddStepString");
			toolStripMenuItem2.Name = "AddStep";
			toolStripMenuItem2.Click += mnuAddStep_Click;
			mStepContextMenu.Items.Add(toolStripMenuItem2);
			toolStripMenuItem3.Text = mResourceManager.GetString("InsertStepString");
			toolStripMenuItem3.Name = "InsertStep";
			toolStripMenuItem3.Click += mnuInsertStep_Click;
			toolStripMenuItem3.Visible = false;
			mStepContextMenu.Items.Add(toolStripMenuItem3);
			toolStripMenuItem4.Text = mResourceManager.GetString("DeleteStepString");
			toolStripMenuItem4.Name = "DeleteStep";
			toolStripMenuItem4.Click += mnuDeleteStep_Click;
			mStepContextMenu.Items.Add(toolStripMenuItem4);
			mStepContextMenu.Items.Add(new ToolStripSeparator());
			toolStripMenuItem5.Text = mResourceManager.GetString("MoveUpString");
			toolStripMenuItem5.Name = "StepMoveUp";
			toolStripMenuItem5.Click += mnuStepMoveUp_Click;
			mStepContextMenu.Items.Add(toolStripMenuItem5);
			toolStripMenuItem5.Visible = false;
			toolStripMenuItem6.Text = mResourceManager.GetString("MoveDownString");
			toolStripMenuItem6.Name = "StepMoveDown";
			toolStripMenuItem6.Click += mnuStepMoveDown_Click;
			toolStripMenuItem6.Visible = false;
			mStepContextMenu.Items.Add(toolStripMenuItem6);
		}

		protected void SwapRow(int currentRowIndex, int objRowIndex, int tabIndex)
		{
			DataTable dataTable = mStepGrids[tabIndex].DataSource as DataTable;
			DataRow dataRow = dataTable.Rows[currentRowIndex];
			DataRow dataRow2 = dataTable.Rows[objRowIndex];
			for (int i = 0; i < dataRow.ItemArray.Length; i++)
			{
				object value = dataRow[i];
				dataRow[i] = dataRow2[i];
				dataRow2[i] = value;
			}
			SetFluoscenceDetectionEnable(Convert.ToBoolean(dataRow["Fluorescence"]), currentRowIndex, true, tabIndex);
			SetAdvanceProgramEnable(Convert.ToBoolean(dataRow["Advanced"]), currentRowIndex, tabIndex);
			SetFluoscenceDetectionEnable(Convert.ToBoolean(dataRow2["Fluorescence"]), objRowIndex, true, tabIndex);
			SetAdvanceProgramEnable(Convert.ToBoolean(dataRow2["Advanced"]), objRowIndex, tabIndex);
			mStepGrids[tabIndex].Rows[objRowIndex].Activate();
		}

		protected void RefreshAmplificationSegmentDisplay(IAmplificationSegment amplificationSegment, int tabIndex)
		{
			tabAmplification.Tabs[tabIndex].Text = amplificationSegment.Name;
			tabAmplification.Tabs[tabIndex].Visible = amplificationSegment.IsAvailable;
			tabAmplification.Tabs[tabIndex].Tag = amplificationSegment;
			if (amplificationSegment.IsAvailable)
			{
				mLastVisibleTabIndex = tabIndex;
			}
			mStepGrids[tabIndex].DataSource = amplificationSegment.StepTable;
			mCycleValues[tabIndex].Value = amplificationSegment.Cycle;
			mCycleValues[tabIndex].ValueChanged -= CycleValue_ValueChanged;
			mCycleValues[tabIndex].Value = amplificationSegment.Cycle;
			mCycleValues[tabIndex].ValueChanged += CycleValue_ValueChanged;
			bool mStepGridColumnIsInitialized2 = mStepGridColumnIsInitialized;
			foreach (UltraGridRow row in mStepGrids[tabIndex].Rows)
			{
				SetFluoscenceDetectionEnable(Convert.ToBoolean(row.Cells["Fluorescence"].Value), row.Index, true, tabIndex);
				SetAdvanceProgramEnable(Convert.ToBoolean(row.Cells["Advanced"].Value), row.Index, tabIndex);
			}
			mStepGrids[tabIndex].DataBind();
			if (mStepGrids[tabIndex].Rows.Count <= 0)
			{
				btnDeleteSegment.Enabled = false;
				btnMoveDown.Enabled = false;
				btnMoveUp.Enabled = false;
			}
			else
			{
				btnDeleteSegment.Enabled = true;
				btnMoveDown.Enabled = true;
				btnMoveUp.Enabled = true;
			}
			btnAddStep.Enabled = mStepGrids[tabIndex].Rows.Count < mPcrProgramConfiguration.ProgramSegmentStepCount;
		}

		protected void SetFluoscenceDetectionEnable(bool isEnable, int rowIndex, bool isNewRow, int tabIndex)
		{
			IAmplificationSegment amplificationSegment = mPcrExperimentProject.PcrProgram.GetAmplificationSegment(tabIndex);
			if (isEnable)
			{
				foreach (UltraGridRow row in mStepGrids[tabIndex].Rows)
				{
					if (row.Index != rowIndex)
					{
						SetSingleRowFluescenceEnable(row, false);
					}
					else
					{
						SetSingleRowFluescenceEnable(row, true);
					}
				}
				amplificationSegment.FluoscenceStep = rowIndex + 1;
				return;
			}
			if (isNewRow)
			{
				if (amplificationSegment.FluoscenceStep > 0)
				{
					SetSingleRowFluescenceEnable(mStepGrids[tabIndex].Rows[rowIndex], false);
				}
				return;
			}
			foreach (UltraGridRow row2 in mStepGrids[tabIndex].Rows)
			{
				SetSingleRowFluescenceEnable(row2, true);
			}
			amplificationSegment.FluoscenceStep = 0;
		}

		protected void SetSingleRowFluescenceEnable(UltraGridRow row, bool isEnable)
		{
			if (isEnable)
			{
				row.Cells["Fluorescence"].Activation = Activation.AllowEdit;
			}
			else
			{
				row.Cells["Fluorescence"].Value = false;
				row.Cells["Fluorescence"].Activation = Activation.Disabled;
			}
			row.Update();
		}

		protected void SetAdvanceProgramEnable(bool isEnable, int rowIndex, int tabIndex)
		{
			for (int i = 5; i <= 9; i++)
			{
				if (!isEnable)
				{
					mStepGrids[tabIndex].Rows[rowIndex].Cells[i].Activation = Activation.Disabled;
				}
				else
				{
					mStepGrids[tabIndex].Rows[rowIndex].Cells[i].Activation = Activation.AllowEdit;
				}
			}
			mStepGrids[tabIndex].Rows[rowIndex].Update();
		}

		protected bool CheckCurrentProgramStatus()
		{
			if (!mIsSaved)
			{
				switch (MessageBox.Show(mResourceManager.GetString("SaveThermalProfile"), mResourceManager.GetString("HintString"), MessageBoxButtons.YesNoCancel))
				{
				case DialogResult.Yes:
					mMenuFile.DropDownItems["SavePcrFile"].PerformClick();
					break;
				case DialogResult.Cancel:
					return false;
				}
			}
			return true;
		}

		protected bool CheckAmplificationSegment(int currentTabIndex)
		{
			mStepGrids[currentTabIndex].Focus();
			mStepGrids[currentTabIndex].UpdateData();
			foreach (UltraGridRow row in mStepGrids[currentTabIndex].Rows)
			{
				string text = (row.Index + 1).ToString();
				double result = 0.0;
				double.TryParse(row.Cells["Temperature"].Value.ToString(), out result);
				if (result < mPcrProgramConfiguration.MinTemperature)
				{
					MessageBox.Show(mResourceManager.GetString("SegmentString") + (currentTabIndex + 1) + " " + mResourceManager.GetString("StepString") + text + ":" + mResourceManager.GetString("TemperatureRangeString"), mResourceManager.GetString("ErrorString"));
					row.Cells["Temperature"].Activate();
					return false;
				}
				int num = mMiscService.CovertTimeStringToSecond(row.Cells["HoldTime"].Value.ToString());
				if (num < mPcrProgramConfiguration.MinHoldTime && Convert.ToBoolean(row.Cells["Fluorescence"].Value))
				{
					MessageBox.Show(mResourceManager.GetString("SegmentString") + (currentTabIndex + 1) + ":" + mResourceManager.GetString("FluorescenceDetectionSelect") + ", " + mResourceManager.GetString("StepString") + text + ":" + mResourceManager.GetString("HoldTimeString") + mResourceManager.GetString("MustBeLargerThan") + mPcrProgramConfiguration.MinHoldTime.ToString() + " " + mResourceManager.GetString("SecondString") + "!", mResourceManager.GetString("ErrorString"));
					row.Cells["HoldTime"].Activate();
					return false;
				}
				if (num <= 0)
				{
					MessageBox.Show(mResourceManager.GetString("SegmentString") + (currentTabIndex + 1) + " " + mResourceManager.GetString("StepString") + text + ":" + mResourceManager.GetString("HoldTimeString") + mResourceManager.GetString("MustBeLargerThan") + " 0 " + mResourceManager.GetString("SecondString") + "!", mResourceManager.GetString("ErrorString"));
					row.Cells["HoldTime"].Activate();
					return false;
				}
				if (Convert.ToBoolean(row.Cells["Fluorescence"].Value))
				{
					int num2 = Convert.ToInt32(mCycleValues[currentTabIndex].Value);
					if (num2 < 3)
					{
						DialogResult dialogResult = MessageBox.Show(mResourceManager.GetString("SegmentString") + (currentTabIndex + 1) + ":" + mResourceManager.GetString("LessCycleValueString"), mResourceManager.GetString("HintString"), MessageBoxButtons.YesNo);
						return dialogResult == DialogResult.Yes;
					}
				}
				if (!Convert.ToBoolean(row.Cells["Advanced"].Value))
				{
					continue;
				}
				int num3 = Convert.ToInt32(numCycleCount1.Value);
				if (Convert.ToBoolean(row.Cells["TemperatureVariation"].Value))
				{
					result += (double)(num3 - 1) * Convert.ToDouble(row.Cells["TemperatureValue"].Value);
					if (result > mPcrProgramConfiguration.MaxTemperature)
					{
						MessageBox.Show(mResourceManager.GetString("SegmentString") + (currentTabIndex + 1) + " " + mResourceManager.GetString("StepString") + text + ": " + mResourceManager.GetString("AdvancedString") + mResourceManager.GetString("ConnectionString") + mResourceManager.GetString("TemperatureInStepString") + mResourceManager.GetString("MustBeLessThan") + " " + mPcrProgramConfiguration.MaxTemperature.ToString("0.0") + " " + mResourceManager.GetString("DegreeString") + "!", mResourceManager.GetString("ErrorString"));
						row.Cells["TemperatureValue"].Activate();
						return false;
					}
				}
				else
				{
					result -= (double)(num3 - 1) * Convert.ToDouble(row.Cells["TemperatureValue"].Value);
					if (result < mPcrProgramConfiguration.MinTemperature)
					{
						MessageBox.Show(mResourceManager.GetString("SegmentString") + (currentTabIndex + 1) + " " + mResourceManager.GetString("StepString") + text + ": " + mResourceManager.GetString("AdvancedString") + mResourceManager.GetString("ConnectionString") + mResourceManager.GetString("TemperatureInStepString") + mResourceManager.GetString("MustBeLargerThan ") + " " + mPcrProgramConfiguration.MinTemperature.ToString("0.0") + " " + mResourceManager.GetString("DegreeString") + "!", mResourceManager.GetString("ErrorString"));
						row.Cells["TemperatureValue"].Activate();
						return false;
					}
				}
				if (Convert.ToBoolean(row.Cells["TimeVariation"].Value))
				{
					num += (num3 - 1) * mMiscService.CovertTimeStringToSecond(row.Cells["TimeValue"].Value.ToString());
					if (num > mPcrProgramConfiguration.MaxHoldTime)
					{
						MessageBox.Show(mResourceManager.GetString("SegmentString") + (currentTabIndex + 1) + " " + mResourceManager.GetString("StepString") + text + ": " + mResourceManager.GetString("AdvancedString") + mResourceManager.GetString("ConnectionString") + mResourceManager.GetString("HoldTimeString") + mResourceManager.GetString("MustBeLessThan") + " " + mPcrProgramConfiguration.MaxHoldTime.ToString() + " " + mResourceManager.GetString("SecondString") + "!", mResourceManager.GetString("ErrorString"));
						row.Cells["TimeValue"].Activate();
						return false;
					}
				}
				else
				{
					num -= (num3 - 1) * mMiscService.CovertTimeStringToSecond(row.Cells["TimeValue"].Value.ToString());
					if (num <= 0)
					{
						MessageBox.Show(mResourceManager.GetString("SegmentString") + (currentTabIndex + 1) + " " + mResourceManager.GetString("StepString") + text + ": " + mResourceManager.GetString("AdvancedString") + mResourceManager.GetString("ConnectionString") + mResourceManager.GetString("HoldTimeString") + mResourceManager.GetString("MustBeLargerThan") + " 0 " + mResourceManager.GetString("SecondString") + "!", mResourceManager.GetString("ErrorString"));
						row.Cells["TimeValue"].Activate();
						return false;
					}
					if (num < mPcrProgramConfiguration.MinHoldTime && Convert.ToBoolean(row.Cells["Fluorescence"].Value))
					{
						MessageBox.Show(mResourceManager.GetString("SegmentString") + (currentTabIndex + 1) + ":" + mResourceManager.GetString("FluorescenceDetectionSelect") + ", " + mResourceManager.GetString("StepString") + text + ":" + mResourceManager.GetString("HoldTimeString") + mResourceManager.GetString("MustBeLargerThan") + mPcrProgramConfiguration.MinHoldTime.ToString() + " " + mResourceManager.GetString("SecondString") + "!", mResourceManager.GetString("ErrorString"));
						row.Cells["HoldTime"].Activate();
						return false;
					}
				}
				double result2 = 0.0;
				double.TryParse(row.Cells["Rising/FallingRate"].Value.ToString(), out result2);
				if (result2 > mPcrProgramConfiguration.MaxRisingSpeed)
				{
					MessageBox.Show(mResourceManager.GetString("SegmentString") + (currentTabIndex + 1) + " " + mResourceManager.GetString("StepString") + text + ": " + mResourceManager.GetString("AdvancedString") + mResourceManager.GetString("ConnectionString") + mResourceManager.GetString("RisingFallingInStep") + mResourceManager.GetString("MustBeLessThan") + " " + mPcrProgramConfiguration.MaxRisingSpeed.ToString() + " " + mResourceManager.GetString("DegreePerSecond") + "!", mResourceManager.GetString("ErrorString"));
					row.Cells["Rising/FallingRate"].Activate();
					return false;
				}
			}
			return true;
		}

		protected bool CheckProgramFluorescenceDetection()
		{
			mPcrExperimentProject.PcrProgram.Update();
			if (mPcrExperimentProject.PcrProgram.AmplificationDetectionCount <= 0)
			{
				DialogResult dialogResult = MessageBox.Show(mResourceManager.GetString("NoFluorescenceDetectionString"), mResourceManager.GetString("HintString"), MessageBoxButtons.YesNo);
				return dialogResult == DialogResult.Yes;
			}
			return true;
		}

		protected bool FindSegmentNameExisted(UltraTab currentTab)
		{
			foreach (UltraTab tab in tabAmplification.Tabs)
			{
				if (tab.Visible && currentTab.Index != tab.Index && tab.Text.Equals(currentTab.Text))
				{
					return true;
				}
			}
			return false;
		}

		protected bool FindStepNameExisted(UltraGridRow currentRow, int gridIndex)
		{
			foreach (UltraGridRow row in mStepGrids[gridIndex].Rows)
			{
				if (currentRow.Index != row.Index && row.Cells[0].Text.Equals(currentRow.Cells[0].Text))
				{
					return true;
				}
			}
			return false;
		}

		protected List<IAmplificationSegment> GenerateAmplificationSegements()
		{
			List<IAmplificationSegment> list = new List<IAmplificationSegment>();
			foreach (UltraTab visibleTab in tabAmplification.VisibleTabs)
			{
				IAmplificationSegment amplificationSegment = visibleTab.Tag as IAmplificationSegment;
				amplificationSegment.IsAvailable = visibleTab.Visible;
				amplificationSegment.Index = visibleTab.VisibleIndex + 1;
				list.Add(amplificationSegment);
			}
			return list;
		}

		protected bool CheckSegmentName(object value)
		{
			string text = (string)value;
			if (string.IsNullOrEmpty(text))
			{
				MessageBox.Show(mResourceManager.GetString("SegmentNameBeEmpty"), mResourceManager.GetString("ErrorString"));
				return false;
			}
			UltraTab selectedTab = tabAmplification.SelectedTab;
			foreach (UltraTab tab in tabAmplification.Tabs)
			{
				if (tab.Visible && tab.Index != selectedTab.Index && tab.Text.Equals(text))
				{
					MessageBox.Show(mResourceManager.GetString("SegmentNameBeRepeat"), mResourceManager.GetString("ErrorString"));
					return false;
				}
			}
			tabAmplification.SelectedTab.Text = text;
			(tabAmplification.SelectedTab.Tag as IAmplificationSegment).Name = text;
			return true;
		}

		protected bool CheckStepName(object value)
		{
			string value2 = (string)value;
			if (string.IsNullOrEmpty(value2))
			{
				MessageBox.Show(mResourceManager.GetString("SegmentNameBeEmpty"), mResourceManager.GetString("ErrorString"));
				return false;
			}
			int index = tabAmplification.SelectedTab.Index;
			mStepGrids[index].ActiveRow.Cells[0].SetValue(value2, false);
			int num = mStepGrids[index].ActiveRow.Cells["StepName"].Column.CalculateAutoResizeWidth(PerformAutoSizeType.VisibleRows, true);
			mStepGrids[index].DisplayLayout.Override.RowSelectorWidth = num + 15;
			return true;
		}

		protected void grdStep_CellDataError(object sender, CellDataErrorEventArgs e)
		{
		}

		protected void grdStep_AfterCellUpdate(object sender, CellEventArgs e)
		{
			IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
			pcrProgram.GetExperimentTotalTime(true);
			mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
			mIsSaved = false;
			btnSave.Enabled = true;
		}

		protected void grdStep_MouseUp(object sender, MouseEventArgs e)
		{
			try
			{
				UltraGrid ultraGrid = sender as UltraGrid;
				UltraGridCell activeCell = ultraGrid.ActiveCell;
				if (activeCell != null && activeCell.Column.Style != Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox)
				{
					int num = 0;
					try
					{
						num = activeCell.SelLength;
					}
					catch
					{
					}
					if (num == activeCell.Text.Length && activeCell.Text.Length > 0)
					{
						activeCell.SelStart = 1;
						activeCell.SelectAll();
						activeCell.SelStart = 0;
					}
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void grdStep_CellChange(object sender, CellEventArgs e)
		{
			try
			{
				int visibleIndex = tabAmplification.SelectedTab.VisibleIndex;
				if (e.Cell.Column.Key.Equals("Fluorescence"))
				{
					SetFluoscenceDetectionEnable(Convert.ToBoolean(e.Cell.Text), e.Cell.Row.Index, false, visibleIndex);
				}
				else if (e.Cell.Column.Key.Equals("Advanced"))
				{
					SetAdvanceProgramEnable(Convert.ToBoolean(e.Cell.Text), e.Cell.Row.Index, visibleIndex);
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void grdStep_BeforeRowUpdate(object sender, CancelableRowEventArgs e)
		{
		}

		protected void grdStep_BeforeCellUpdate(object sender, BeforeCellUpdateEventArgs e)
		{
		}

		protected void grdStep_BeforeExitEditMode(object sender, Infragistics.Win.UltraWinGrid.BeforeExitEditModeEventArgs e)
		{
		}

		protected void btnAddStep_Click(object sender, EventArgs e)
		{
			try
			{
				int visibleIndex = tabAmplification.SelectedTab.VisibleIndex;
				IAmplificationSegment amplificationSegment = mPcrExperimentProject.PcrProgram.GetAmplificationSegment(visibleIndex);
				amplificationSegment.CreateNewStep();
				SetFluoscenceDetectionEnable(false, mStepGrids[visibleIndex].Rows.Count - 1, true, visibleIndex);
				SetAdvanceProgramEnable(false, mStepGrids[visibleIndex].Rows.Count - 1, visibleIndex);
				btnAddStep.Enabled = mStepGrids[visibleIndex].Rows.Count < mPcrProgramConfiguration.ProgramSegmentStepCount;
				btnDeleteSegment.Enabled = true;
				btnMoveDown.Enabled = true;
				btnMoveUp.Enabled = true;
				mStepGrids[visibleIndex].Rows[mStepGrids[visibleIndex].Rows.Count - 1].Cells[0].Activate();
				IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
				pcrProgram.GetExperimentTotalTime(true);
				mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
				mIsSaved = false;
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void btnDeleteStep_Click(object sender, EventArgs e)
		{
			try
			{
				int visibleIndex = tabAmplification.SelectedTab.VisibleIndex;
				if (mStepGrids[visibleIndex].ActiveRow != null && mStepGrids[visibleIndex].Rows.Count > 1)
				{
					DataTable dataTable = mStepGrids[visibleIndex].DataSource as DataTable;
					IAmplificationSegment amplificationSegment = mPcrExperimentProject.PcrProgram.GetAmplificationSegment(visibleIndex);
					int num = mStepGrids[visibleIndex].Rows.Count - 1;
					if (amplificationSegment.FluoscenceStep == num + 1)
					{
						SetFluoscenceDetectionEnable(false, num, false, visibleIndex);
					}
					dataTable.Rows.RemoveAt(mStepGrids[visibleIndex].Rows[num].Index);
					if (mStepGrids[visibleIndex].Rows.Count <= 0)
					{
						btnDeleteSegment.Enabled = false;
						btnMoveDown.Enabled = false;
						btnMoveUp.Enabled = false;
					}
					else
					{
						btnAddStep.Enabled = true;
					}
					IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mIsSaved = false;
					btnSave.Enabled = true;
				}
				else
				{
					MessageBox.Show(mResourceManager.GetString("DeleteLastStep"), mResourceManager.GetString("ErrorString"));
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void btnMoveUp_Click(object sender, EventArgs e)
		{
			try
			{
				int visibleIndex = tabAmplification.SelectedTab.VisibleIndex;
				if (mStepGrids[visibleIndex].ActiveRow != null)
				{
					UltraGridRow activeRow = mStepGrids[visibleIndex].ActiveRow;
					int index = activeRow.Index;
					if (index > 0)
					{
						SwapRow(index, index - 1, visibleIndex);
						mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProject.PcrProgram, false, scrollBar, false, true);
						mIsSaved = false;
						btnSave.Enabled = true;
					}
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void btnMoveDown_Click(object sender, EventArgs e)
		{
			try
			{
				int visibleIndex = tabAmplification.SelectedTab.VisibleIndex;
				if (mStepGrids[visibleIndex].ActiveRow != null)
				{
					UltraGridRow activeRow = mStepGrids[visibleIndex].ActiveRow;
					int index = activeRow.Index;
					if (activeRow.Index < mStepGrids[visibleIndex].Rows.Count - 1)
					{
						SwapRow(index, index + 1, visibleIndex);
						mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProject.PcrProgram, false, scrollBar, false, true);
						mIsSaved = false;
						btnSave.Enabled = true;
					}
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		private void btnAddSegment_Click(object sender, EventArgs e)
		{
			try
			{
				int num = mLastVisibleTabIndex + 1;
				if (num < tabAmplification.VisibleTabs.Count)
				{
					UltraTab ultraTab = tabAmplification.VisibleTabs[num];
					if (mLastVisibleTabIndex < 0)
					{
						tabAmplification.Enabled = true;
						btnDeleteSegment.Enabled = true;
						btnAddStep.Enabled = true;
						btnDeleteStep.Enabled = true;
					}
					else if (mLastVisibleTabIndex < tabAmplification.VisibleTabs.Count - 1)
					{
						ultraTab.Visible = true;
						ultraTab.Enabled = true;
						ultraTab.Selected = true;
						ultraTab.Text = mResourceManager.GetString("SegmentString") + " " + (num + 1);
					}
					IAmplificationSegment amplificationSegment = ultraTab.Tag as IAmplificationSegment;
					amplificationSegment.IsAvailable = true;
					amplificationSegment.Name = ultraTab.Text;
					IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mLastVisibleTabIndex = ultraTab.VisibleIndex;
					mIsSaved = false;
					btnSave.Enabled = true;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		private void btnDeleteSegment_Click(object sender, EventArgs e)
		{
			try
			{
				if (mLastVisibleTabIndex > 0)
				{
					UltraTab ultraTab = tabAmplification.VisibleTabs[mLastVisibleTabIndex];
					ultraTab.Visible = false;
					ultraTab.Enabled = false;
					IAmplificationSegment amplificationSegment = ultraTab.Tag as IAmplificationSegment;
					amplificationSegment.IsAvailable = false;
					IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					if (tabAmplification.VisibleTabs.LastSelectableTab != null)
					{
						mLastVisibleTabIndex = tabAmplification.VisibleTabs.LastSelectableTab.VisibleIndex;
					}
					else
					{
						mLastVisibleTabIndex = -1;
					}
					mIsSegmentPositionChanged = true;
					mIsSaved = false;
					btnSave.Enabled = true;
				}
				else
				{
					MessageBox.Show(mResourceManager.GetString("DeleteLastSegment"), mResourceManager.GetString("ErrorString"));
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void CycleValue_ValueChanged(object sender, EventArgs e)
		{
			try
			{
				int index = tabAmplification.SelectedTab.Index;
				IAmplificationSegment amplificationSegment = tabAmplification.SelectedTab.Tag as IAmplificationSegment;
				int num = Convert.ToInt32(mCycleValues[index].Value);
				if (num != amplificationSegment.Cycle)
				{
					amplificationSegment.Cycle = num;
					IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mIsSaved = false;
					btnSave.Enabled = true;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void scrollBar_ValueChanged(object sender, EventArgs e)
		{
			try
			{
				chartPcrProgram.Axis.X.RangeMax += (double)scrollBar.Value - chartPcrProgram.Axis.X.RangeMin;
				chartPcrProgram.Axis.X.RangeMin = scrollBar.Value;
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuSegmentRename_Click(object sender, EventArgs e)
		{
			try
			{
				mCheckNameDelegate = CheckSegmentName;
				mPcrOptionService.ShowSetValueForm(mResourceManager.GetString("SegmentNameChanged"), mResourceManager.GetString("RenameString"), tabAmplification.SelectedTab.Text, this);
				mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProject.PcrProgram, false, scrollBar, false, true);
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuAddSegment_Click(object sender, EventArgs e)
		{
			btnAddSegment.PerformClick();
		}

		protected void mnuInsertSegment_Click(object sender, EventArgs e)
		{
		}

		protected void mnuDeleteSegment_Click(object sender, EventArgs e)
		{
			btnDeleteSegment.PerformClick();
		}

		protected void mnuSegmentMoveForward_Click(object sender, EventArgs e)
		{
			try
			{
				UltraTab selectedTab = tabAmplification.SelectedTab;
				int visibleIndex = selectedTab.VisibleIndex;
				if (visibleIndex > 0)
				{
					UltraTab ultraTab = tabAmplification.VisibleTabs[visibleIndex - 1];
					selectedTab.Reposition(ultraTab, RelativePosition.Before);
					IAmplificationSegment amplificationSegment = selectedTab.Tag as IAmplificationSegment;
					IAmplificationSegment amplificationSegment2 = ultraTab.Tag as IAmplificationSegment;
					IPcrProgram pcrProgram = PcrExperimentProject.PcrProgram;
					pcrProgram.SwapAmplificationSegment(amplificationSegment.Index, amplificationSegment2.Index);
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mIsSegmentPositionChanged = true;
					string text = ultraTab.Text;
					ultraTab.Text = selectedTab.Text;
					selectedTab.Text = text;
					mIsSaved = false;
					btnSave.Enabled = true;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuSegmentMoveBackward_Click(object sender, EventArgs e)
		{
			try
			{
				UltraTab selectedTab = tabAmplification.SelectedTab;
				int visibleIndex = selectedTab.VisibleIndex;
				if (visibleIndex < tabAmplification.VisibleTabs.Count)
				{
					UltraTab ultraTab = tabAmplification.VisibleTabs[visibleIndex + 1];
					selectedTab.Reposition(ultraTab, RelativePosition.After);
					IAmplificationSegment amplificationSegment = selectedTab.Tag as IAmplificationSegment;
					IAmplificationSegment amplificationSegment2 = ultraTab.Tag as IAmplificationSegment;
					IPcrProgram pcrProgram = PcrExperimentProject.PcrProgram;
					pcrProgram.SwapAmplificationSegment(amplificationSegment.Index, amplificationSegment2.Index);
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mIsSegmentPositionChanged = true;
					string text = ultraTab.Text;
					ultraTab.Text = selectedTab.Text;
					selectedTab.Text = text;
					mIsSaved = false;
					btnSave.Enabled = true;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuStepRename_Click(object sender, EventArgs e)
		{
			try
			{
				int index = tabAmplification.SelectedTab.Index;
				string originalValue = mStepGrids[index].ActiveRow.Cells[0].Text;
				mCheckNameDelegate = CheckStepName;
				mPcrOptionService.ShowSetValueForm(mResourceManager.GetString("StepNameChanged"), mResourceManager.GetString("RenameString"), originalValue, this);
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuAddStep_Click(object sender, EventArgs e)
		{
			btnAddStep.PerformClick();
		}

		protected void mnuInsertStep_Click(object sender, EventArgs e)
		{
		}

		protected void mnuDeleteStep_Click(object sender, EventArgs e)
		{
			btnDeleteStep.PerformClick();
		}

		protected void mnuStepMoveUp_Click(object sender, EventArgs e)
		{
			try
			{
				int visibleIndex = tabAmplification.SelectedTab.VisibleIndex;
				if (mStepGrids[visibleIndex].ActiveRow != null)
				{
					UltraGridRow activeRow = mStepGrids[visibleIndex].ActiveRow;
					int index = activeRow.Index;
					if (index > 0)
					{
						SwapRow(index, index - 1, visibleIndex);
						mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProject.PcrProgram, false, scrollBar, false, true);
						mIsSaved = false;
						btnSave.Enabled = true;
					}
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuStepMoveDown_Click(object sender, EventArgs e)
		{
			try
			{
				int visibleIndex = tabAmplification.SelectedTab.VisibleIndex;
				if (mStepGrids[visibleIndex].ActiveRow != null)
				{
					UltraGridRow activeRow = mStepGrids[visibleIndex].ActiveRow;
					int index = activeRow.Index;
					if (activeRow.Index < mStepGrids[visibleIndex].Rows.Count - 1)
					{
						SwapRow(index, index + 1, visibleIndex);
						mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProject.PcrProgram, false, scrollBar, false, true);
						mIsSaved = false;
						btnSave.Enabled = true;
					}
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		private void tabAmplification_SelectedTabChanging(object sender, SelectedTabChangingEventArgs e)
		{
			try
			{
				if (tabAmplification.SelectedTab != null && !CheckAmplificationSegment(tabAmplification.SelectedTab.Index))
				{
					e.Cancel = true;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		private void tabAmplification_MouseClick(object sender, MouseEventArgs e)
		{
			try
			{
				if (e.Button == MouseButtons.Right)
				{
					UltraTab ultraTab = tabAmplification.TabFromPoint(e.Location);
					if (ultraTab != null && ultraTab.Index == tabAmplification.SelectedTab.Index)
					{
						mSegmentContextMenu.Show(tabAmplification, e.Location);
					}
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		private void StepGrid_MouseClick(object sender, MouseEventArgs e)
		{
			try
			{
				if (e.Button != MouseButtons.Right)
				{
					return;
				}
				UltraGrid ultraGrid = sender as UltraGrid;
				UIElement uIElement = ultraGrid.DisplayLayout.UIElement.ElementFromPoint(e.Location);
				if (uIElement != null)
				{
					RowSelectorUIElement rowSelectorUIElement = (RowSelectorUIElement)uIElement.GetAncestor(typeof(RowSelectorUIElement));
					if (rowSelectorUIElement != null)
					{
						mStepContextMenu.Show(ultraGrid, e.Location);
					}
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void segmentBar_ItemExitingEditMode(object sender, CancelableItemExitingEditModeEventArgs e)
		{
			mTitleError = false;
			if (!mTitleError)
			{
				e.EditedText = e.EditedText.Trim();
				if (string.IsNullOrEmpty(e.EditedText))
				{
					MessageBox.Show(mResourceManager.GetString("SegmentNameBeEmpty"), mResourceManager.GetString("ErrorString"));
					mTitleError = true;
					e.EditedText = e.Item.Text;
					mProgramError = true;
					return;
				}
				if (e.EditedText.Length > 20)
				{
					MessageBox.Show(mResourceManager.GetString("SegmentNameLengthLarger"), mResourceManager.GetString("ErrorString"));
					mTitleError = true;
					e.EditedText = e.Item.Text;
					mProgramError = true;
					return;
				}
				foreach (UltraExplorerBarItem item in e.Item.Group.Items)
				{
					if (item != e.Item && string.Compare(item.Text, e.EditedText) == 0)
					{
						MessageBox.Show(mResourceManager.GetString("SegmentNameBeRepeat"), mResourceManager.GetString("ErrorString"));
						e.EditedText = e.Item.Text;
						mTitleError = true;
						mProgramError = true;
						return;
					}
				}
				mProgramError = false;
				mIsSaved = false;
				btnSave.Enabled = true;
			}
			else
			{
				mTitleError = false;
			}
		}

		protected virtual void InitializeMeltingSegment()
		{
			numStartTemperature.DecimalPlaces = 1;
			numStopTemperature.DecimalPlaces = 1;
			numStartTemperature.Maximum = Convert.ToDecimal(mPcrProgramConfiguration.MaxTemperature);
			numStartTemperature.Minimum = Convert.ToDecimal(mPcrProgramConfiguration.MinTemperature);
			numStopTemperature.Maximum = Convert.ToDecimal(mPcrProgramConfiguration.MaxTemperature);
			numStopTemperature.Minimum = Convert.ToDecimal(mPcrProgramConfiguration.MinTemperature);
			numStartTemperature.Value = (decimal)mPcrProgramConfiguration.DefaultMeltingStartTemperature;
			numStopTemperature.Value = (decimal)mPcrProgramConfiguration.DefaultMeltingStopTemperature;
			cmbStep.Items.Add("0.1");
			cmbStep.Items.Add("0.5");
			cmbStep.Items.Add("1");
			cmbStep.SelectedIndex = 2;
			chkMeltingSegment.Checked = false;
			SetMeltingSegmentEnabled(false);
			cmbStep.SelectedIndexChanged += cmbStep_SelectedIndexChanged;
			numStopTemperature.ValueChanged += numStopTemperature_ValueChanged;
			numStartTemperature.ValueChanged += numStartTemperature_ValueChanged;
			grbMeltingSegment.Visible = true;
			chkMeltingSegment.Visible = true;
		}

		protected virtual void InitializeHRMSegment()
		{
			grbHRMSegment.Visible = false;
		}

		protected virtual void SetMeltingSegmentEnabled(bool isEnabled)
		{
			grbMeltingSegment.Enabled = isEnabled;
			numStartTemperature.Enabled = isEnabled;
			numStopTemperature.Enabled = isEnabled;
			if (isEnabled)
			{
				grbHRMSegment.Enabled = false;
				numHRMStartTemperature.Enabled = false;
				numHRMStopTemperature.Enabled = false;
				chkHRMSegment.Checked = false;
			}
		}

		protected virtual void SetHRMSegmentEnabled(bool isEnabled)
		{
			grbHRMSegment.Enabled = isEnabled;
			numHRMStartTemperature.Enabled = isEnabled;
			numHRMStopTemperature.Enabled = isEnabled;
			if (isEnabled)
			{
				chkMeltingSegment.CheckedChanged -= chkMeltingSegment_CheckedChanged;
				chkMeltingSegment.Checked = false;
				grbMeltingSegment.Enabled = false;
				numStartTemperature.Enabled = false;
				numStopTemperature.Enabled = false;
				chkMeltingSegment.CheckedChanged += chkMeltingSegment_CheckedChanged;
			}
		}

		protected virtual void RefreshMeltingSegmentDisplay()
		{
			if (mMeltingSegment.IsAvailable)
			{
				chkMeltingSegment.Checked = true;
				numStartTemperature.Value = Convert.ToDecimal(mMeltingSegment.StartDegree);
				numStopTemperature.Value = Convert.ToDecimal(mMeltingSegment.StopDegree);
				cmbStep.Text = mMeltingSegment.StepInterval.ToString();
			}
			else
			{
				chkMeltingSegment.Checked = false;
			}
			SetMeltingSegmentEnabled(chkMeltingSegment.Checked);
		}

		protected bool CheckMeltingSegment()
		{
			if (chkMeltingSegment.Checked && Convert.ToDouble(numStartTemperature.Value) >= Convert.ToDouble(numStopTemperature.Value))
			{
				numStartTemperature.Focus();
				MessageBox.Show(mResourceManager.GetString("MeltingStartLessThanStop"), mResourceManager.GetString("ErrorString"));
				return false;
			}
			return true;
		}

		protected bool CheckHRMSegment()
		{
			if (chkHRMSegment.Checked && Convert.ToDouble(numHRMStartTemperature.Value) >= Convert.ToDouble(numHRMStopTemperature.Value))
			{
				numHRMStartTemperature.Focus();
				MessageBox.Show(mResourceManager.GetString("MeltingStartLessThanStop"), mResourceManager.GetString("ErrorString"));
				return false;
			}
			return true;
		}

		protected virtual bool SaveMeltingSegment()
		{
			if (CheckMeltingSegment())
			{
				mMeltingSegment.IsAvailable = chkMeltingSegment.Checked;
				if (mMeltingSegment.IsAvailable)
				{
					mMeltingSegment.StartDegree = Convert.ToDouble(numStartTemperature.Value);
					mMeltingSegment.StopDegree = Convert.ToDouble(numStopTemperature.Value);
					mMeltingSegment.HoldTime = mConfigurationService.MeltingHoldTime;
					mMeltingSegment.StepInterval = mConfigurationService.MeltingStepInterval;
					mMeltingSegment.Index = 10;
					mMeltingSegment.Rate = 0.0;
				}
				return true;
			}
			tabPcrProject.SelectedTab = tabPcrProject.Tabs["Melting"];
			tabPcrProject.ActiveTab = tabPcrProject.Tabs["Melting"];
			return false;
		}

		private void numStartTemperature_ValueChanged(object sender, EventArgs e)
		{
			try
			{
				numStartTemperature.ValueChanged -= numStartTemperature_ValueChanged;
				numStartTemperature.Enabled = false;
				if (CheckMeltingSegment())
				{
					mMeltingSegment.StartDegree = Convert.ToDouble(numStartTemperature.Value);
					mMeltingSegment.CalculateMeltingCycle();
					IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mIsSaved = false;
					btnSave.Enabled = true;
				}
				else
				{
					numStartTemperature.Value = Convert.ToDecimal(mMeltingSegment.StartDegree);
					numStartTemperature.Focus();
					numStartTemperature.Select();
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
			finally
			{
				numStartTemperature.ValueChanged += numStartTemperature_ValueChanged;
				numStartTemperature.Enabled = true;
			}
		}

		protected void numHRMStartTemperature_ValueChanged(object sender, EventArgs e)
		{
			try
			{
				numHRMStartTemperature.ValueChanged -= numHRMStartTemperature_ValueChanged;
				numHRMStartTemperature.Enabled = false;
				if (CheckHRMSegment())
				{
					mHRMSegment.StartDegree = Convert.ToDouble(numHRMStartTemperature.Value);
					mHRMSegment.CalculateMeltingCycle();
					IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mIsSaved = false;
					btnSave.Enabled = true;
				}
				else
				{
					numHRMStartTemperature.Value = Convert.ToDecimal(mHRMSegment.StartDegree);
					numHRMStartTemperature.Focus();
					numHRMStartTemperature.Select();
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
			finally
			{
				numHRMStartTemperature.ValueChanged += numHRMStartTemperature_ValueChanged;
				numHRMStartTemperature.Enabled = true;
			}
		}

		private void numStopTemperature_ValueChanged(object sender, EventArgs e)
		{
			try
			{
				numStopTemperature.ValueChanged -= numStopTemperature_ValueChanged;
				numStopTemperature.Enabled = false;
				if (CheckMeltingSegment())
				{
					mMeltingSegment.StopDegree = Convert.ToDouble(numStopTemperature.Value);
					mMeltingSegment.CalculateMeltingCycle();
					IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mIsSaved = false;
					btnSave.Enabled = true;
				}
				else
				{
					numStopTemperature.Value = Convert.ToDecimal(mMeltingSegment.StopDegree);
					numStopTemperature.Focus();
					numStopTemperature.Select();
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
			finally
			{
				numStopTemperature.ValueChanged += numStopTemperature_ValueChanged;
				numStopTemperature.Enabled = true;
			}
		}

		protected void numHRMStopTemperature_ValueChanged(object sender, EventArgs e)
		{
			try
			{
				numHRMStopTemperature.ValueChanged -= numHRMStopTemperature_ValueChanged;
				numHRMStopTemperature.Enabled = false;
				if (CheckHRMSegment())
				{
					mHRMSegment.StopDegree = Convert.ToDouble(numHRMStopTemperature.Value);
					mHRMSegment.CalculateMeltingCycle();
					IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mIsSaved = false;
					btnSave.Enabled = true;
				}
				else
				{
					numHRMStopTemperature.Value = Convert.ToDecimal(mHRMSegment.StopDegree);
					numHRMStopTemperature.Focus();
					numHRMStopTemperature.Select();
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
			finally
			{
				numHRMStopTemperature.ValueChanged += numHRMStopTemperature_ValueChanged;
				numHRMStopTemperature.Enabled = true;
			}
		}

		private void chkMeltingSegment_CheckedChanged(object sender, EventArgs e)
		{
			try
			{
				SetMeltingSegmentEnabled(chkMeltingSegment.Checked);
				mMeltingSegment.IsAvailable = chkMeltingSegment.Checked;
				mHRMSegment.IsAvailable = chkHRMSegment.Checked;
				if (SaveMeltingSegment())
				{
					mPcrExperimentProject.Update();
					IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mIsSaved = false;
					btnSave.Enabled = true;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		private void chkHRMSegment_CheckedChanged(object sender, EventArgs e)
		{
		}

		private void cmbStep_SelectedIndexChanged(object sender, EventArgs e)
		{
			try
			{
				if (CheckMeltingSegment())
				{
					mHRMSegment.StepInterval = Convert.ToDouble(cmbStep.Text);
					mHRMSegment.CalculateMeltingCycle();
					IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mIsSaved = false;
					btnSave.Enabled = true;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void numHRMHoldTime_ValueChanged(object sender, EventArgs e)
		{
			try
			{
				if (CheckMeltingSegment())
				{
					mHRMSegment.HoldTime = "00:" + numHRMHoldTime.Value.ToString("00");
					mHRMSegment.CalculateMeltingCycle();
					IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mIsSaved = false;
					btnSave.Enabled = true;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void cmbHRMRate_SelectedIndexChanged(object sender, EventArgs e)
		{
			try
			{
				if (CheckMeltingSegment())
				{
					mHRMSegment.Rate = Convert.ToDouble(cmbHRMRate.Text);
					(mPcrExperimentProject as IGeneScanPcrExperimentProject).SettingRate = mHRMSegment.Rate;
					mHRMSegment.CalculateMeltingCycle();
					IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mIsSaved = false;
					btnSave.Enabled = true;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void cmbHRMInterval_SelectedIndexChanged(object sender, EventArgs e)
		{
			try
			{
				if (CheckMeltingSegment())
				{
					mHRMSegment.StepInterval = Convert.ToDouble(cmbHRMInterval.Text);
					mHRMSegment.CalculateMeltingCycle();
					IPcrProgram pcrProgram = mPcrExperimentProject.PcrProgram;
					pcrProgram.GetExperimentTotalTime(true);
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, pcrProgram, false, scrollBar, false, true);
					mIsSaved = false;
					btnSave.Enabled = true;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}
	}
}
